updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / opera-mini / PKGBUILD
blobe3bdac1bc065865eb68e981ee02f14300b7f2152
1 pkgname=opera-mini
2 pkgver=5.1.22296
3 pkgrel=1
4 arch=('any')
5 pkgdesc="Opera-mini (Mobile Edition)"
6 url="http://www.opera.com/mini/download"
7 license=('custom')
8 depends=('microemulator')
9 source=('opera-mini.desktop'
10         'opera-mini.launcher'
11         "http://mini.opera.com/global/opera-mini-$pkgver-advanced-en.jad"
12         "http://mini.opera.com/global/opera-mini-$pkgver-advanced-en.jar")
13 noextract=('opera-mini-$pkgver-advanced-en.jar' 'opera-mini-$pkgver-advanced-en.jad')
14 md5sums=('8612dee60e9087b69499a3a39e6deacb'
15          'c81fdddc2751ba8b34b6037b1df0d56e'
16          '4bda243fe962e62b068ce719ca5950a5'
17          '905394f21fc169e28e2ba1c1b3bad4ce')
19 build() {
20   cd $srcdir
21   mkdir -p "$pkgdir"/usr/share/java/microemulator/apps/
22   install -Dm644 $srcdir/opera-mini-$pkgver-advanced-en.ja* "$pkgdir"/usr/share/java/microemulator/apps/
23   mkdir -p "$pkgdir"/usr/share/applications/
24   sed -e "s/latest/$pkgver/" -i $srcdir/opera-mini.launcher
25   install -Dm755 $srcdir/opera-mini.launcher "$pkgdir"/usr/bin/opera-mini
26   install -Dm644 $srcdir/opera-mini.desktop \
27     "$pkgdir"/usr/share/applications/