[arch-commits] Commit in flashplugin/trunk (PKGBUILD flashplugin.install)
Thomas Bächler
thomas at archlinux.org
Thu Dec 18 13:23:24 UTC 2008
Date: Thursday, December 18, 2008 @ 08:23:24
Author: thomas
Revision: 21949
upgpkg: flashplugin 10.0.d21.1-1
Modified:
flashplugin/trunk/PKGBUILD
Deleted:
flashplugin/trunk/flashplugin.install
---------------------+
PKGBUILD | 45 +++++++++++++++++++++++++++++++--------------
flashplugin.install | 15 ---------------
2 files changed, 31 insertions(+), 29 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2008-12-18 11:26:39 UTC (rev 21948)
+++ PKGBUILD 2008-12-18 13:23:24 UTC (rev 21949)
@@ -1,23 +1,40 @@
# $Id$
pkgname=flashplugin
-pkgver=10.0.12.36
-pkgrel=4
-pkgdesc='Adobe Flash Player (downloads plugin on install)'
+_licensefile='Reader_Player_WWEULA-Combined-20060724_1430.pdf'
+if [ "${CARCH}" = 'i686' ]; then
+ pkgver=10.0.15.3
+ pkgrel=1
+ source=('http://fpdownload.macromedia.com/get/flashplayer/current/install_flash_player_10_linux.tar.gz'
+ "http://www.adobe.com/products/eulas/pdfs/${_licensefile}")
+ md5sums=('afab0b40b0ae11445e2e90a4a9224a8a'
+ '844cea6c9afc13d9e27f28ce1a6e20f3')
+elif [ "${CARCH}" = 'x86_64' ]; then
+ pkgver=10.0.d21.1
+ pkgrel=1
+ source=("http://download.macromedia.com/pub/labs/flashplayer10/libflashplayer-${pkgver}.linux-x86_64.so.tar.gz"
+ "http://www.adobe.com/products/eulas/pdfs/${_licensefile}")
+ md5sums=('c165af9d4e324bfaf6d1cfbdbe959fbb'
+ '844cea6c9afc13d9e27f28ce1a6e20f3')
+else
+ error Unknown architecture.
+ exit 1
+fi
+pkgdesc='Adobe Flash Player'
+url='http://www.adobe.com/go/getflash'
arch=('i686' 'x86_64')
-depends=('mozilla-common' 'libxt' 'gtk2' 'nss' 'wget' 'libarchive')
+depends=('mozilla-common' 'libxt' 'gtk2' 'nss' 'curl')
replaces=('flashplugin-beta')
-conflicts=('nspluginwrapper')
provides=('flashplayer')
-url='http://www.adobe.com/go/getflash'
-license=('GPL')
-_source=('http://fpdownload.macromedia.com/get/flashplayer/current/install_flash_player_10_linux.tar.gz')
-[ "$CARCH" = 'x86_64' ] && pkgver=10.0.d20.7
-[ "$CARCH" = 'x86_64' ] && _source=('http://download.macromedia.com/pub/labs/flashplayer10/libflashplayer-10.0.d20.7.linux-x86_64.so.tar.gz')
+license=('custom')
-install=flashplugin.install
-
build() {
- sed -r "s|_source=.*|_source='${_source}'|g" -i ${startdir}/flashplugin.install
- install -d ${pkgdir}/usr/lib/mozilla/plugins
+ install -d -m755 ${pkgdir}/usr/lib/mozilla/plugins/ || return 1
+ if [ "${CARCH}" = 'i686' ]; then
+ install -m755 ${srcdir}/install_flash_player_10_linux/libflashplayer.so ${pkgdir}/usr/lib/mozilla/plugins/ || return 1
+ elif [ "${CARCH}" = 'x86_64' ]; then
+ install -m755 ${srcdir}/libflashplayer.so ${pkgdir}/usr/lib/mozilla/plugins/ || return 1
+ fi
+ install -d -m755 ${pkgdir}/usr/share/licenses/${pkgname}/ || return 1
+ install -m644 "${_licensefile}" ${pkgdir}/usr/share/licenses/${pkgname}/ || return 1
}
Deleted: flashplugin.install
===================================================================
--- flashplugin.install 2008-12-18 11:26:39 UTC (rev 21948)
+++ flashplugin.install 2008-12-18 13:23:24 UTC (rev 21949)
@@ -1,15 +0,0 @@
-_source='http://fpdownload.macromedia.com/get/flashplayer/current/install_flash_player_10_linux.tar.gz'
-
-post_install() {
- echo 'Downloading Flash Player...'
- wget -T 30 -q -O - "${_source}" | bsdtar --strip-components=1 -x -o -f - -C usr/lib/mozilla/plugins/ *libflashplayer.so \
- || echo 'Download failed. Please install again later.'
-}
-
-post_upgrade() {
- post_install
-}
-
-post_remove() {
- rm -f usr/lib/mozilla/plugins/libflashplayer.so
-}
More information about the arch-commits
mailing list