updated on Tue Jan 10 04:01:21 UTC 2012
[aur-mirror.git] / flashplugin-10.1 / PKGBUILD
blob163598f242e9b6017e3e660b474dbdfef58120d1
1 # Maintainer: Michael Witten <mfwitten>
3 pkgname=flashplugin-10.1
4 pkgver=10.1.102.64
5 pkgrel=3
6 pkgdesc="An older version of flashplugin"
7 url=http://kb2.adobe.com/cps/142/tn_14266.html
8 license=(custom)
9 provides=(flashplugin)
10 conflicts=(flashplugin)
12 arch=(i686)
14 depends=(mozilla-common libxt gtk2 nss curl)
15 makedepends=(unzip)
17 source=(http://fpdownload.macromedia.com/get/flashplayer/installers/archive/fp_10.1.102.64_and_9.0.289.0_archive.zip)
18 md5sums=(015e07f77169b8f5ca388b065b1c9071)
20 _archive=$(basename "${source[0]}")
21 noextract=("$_archive")
23 options=('!strip')
25 package()
27   cd "$srcdir"
29   local directory tarball license;
30   directory="${_archive%.*}/Flash Player 10.1.102.64"
31   tarball=$directory/10_1r102_64/flashplayer10_1r102_64_linux.tar.gz
32   license=$directory/readme.txt
34   install -d -m755 "$pkgdir/usr/lib/mozilla/plugins"
35   install -d -m755 "$pkgdir/usr/share/licenses/$pkgname"
36   install -d -m755 "$pkgdir/etc/adobe"
38   unzip -p "$_archive" "$tarball" |
39     tar -zx -C "$pkgdir/usr/lib/mozilla/plugins" libflashplayer.so
41   unzip -p "$_archive" "$license" > "$pkgdir/usr/share/licenses/$pkgname/readme.txt"