Commit | Line | Data |
---|---|---|
209feeb0 H |
1 | pkgname=opera-mini |
2 | pkgver=4.2.13337 | |
3 | pkgrel=2 | |
4 | arch=('any') | |
5 | pkgdesc="Opera-mini (Mobile Edition)" | |
6 | url="http://www.opera.com/mini/download" | |
7 | license=('custom') | |
8 | depends=('jre' 'microemulator') | |
9 | source=(http://mini.opera.com/global/opera-mini-$pkgver-advanced-${LANG:0:2}.jar | |
10 | http://mini.opera.com/global/opera-mini-$pkgver-advanced-${LANG:0:2}.jad | |
11 | opera-mini.launcher opera-mini.desktop) | |
12 | noextract=(opera-mini-$pkgver-advanced-${LANG:0:2}.jar opera-mini-$pkgver-advanced-${LANG:0:2}.jad) | |
13 | md5sums=() | |
14 | ||
15 | build() { | |
16 | cd $srcdir | |
17 | mkdir -p "$pkgdir"/usr/share/java/microemulator/apps/ | |
18 | install -Dm644 $srcdir/opera-mini-$pkgver-advanced-${LANG:0:2}.ja* "$pkgdir"/usr/share/java/microemulator/apps/ | |
19 | mkdir -p "$pkgdir"/usr/share/applications/ | |
20 | sed -e "s/latest/$pkgver/" -i $srcdir/opera-mini.launcher | |
21 | sed -e "s/111language111/${LANG:0:2}/" -i $srcdir/opera-mini.launcher | |
22 | install -Dm755 $srcdir/opera-mini.launcher "$pkgdir"/usr/bin/opera-mini | |
23 | install -Dm644 $srcdir/opera-mini.desktop \ | |
24 | "$pkgdir"/usr/share/applications/ | |
25 | ||
26 | } |