public
anonymous / PKGBUILD.txt
Created

PKGBUILD

  • Download Gist
PKGBUILD.txt
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57
# Contributor : Anish Bhatt <anish[removethis][at]gatech[dot]edu>
 
pkgname=flashplugin-beta
_licensefile='PlatformClients_PC_WWEULA_Combined_20100108_1657.pdf'
pkgver=11.2.202.236
pkgrel=1
 
pkgdesc='Adobe Flash Player 11 Beta'
# Thanks Det for the correct URL
url='http://labs.adobe.com/downloads/flashplayer11-2.html'
arch=('i686' 'x86_64')
 
source=("flash_player_beta-${pkgver}.tar.gz::http://fpdownload.macromedia.com/get/flashplayer/pdc/$pkgver/install_flash_player_11_linux.i386.tar.gz"
mms.cfg
LICENSE)
md5sums=('00b3dd02b9ac600272440ebadda724e1'
'245c04e582a6cb993a2c2a1c3f62e7a2'
'05ccdb2de8f04af6641675975a807cf5')
_lib=lib
if [[ $CARCH == x86_64 ]]; then
source[0]=flash_player_beta-${pkgver}.tar.gz::http://fpdownload.macromedia.com/get/flashplayer/pdc/$pkgver/install_flash_player_11_linux.x86_64.tar.gz
md5sums[0]=f3cec2b9b38bd58f5e20f543d957bc17
_lib=lib64
fi
_licensefile='LICENSE'
 
depends=('mozilla-common' 'libxt' 'gtk2' 'nss' 'curl')
optdepends=('libvdpau: GPU acceleration on Nvidia card' 'libvdpau-git-flashpatch: libvdpau with fixed for blue overlay issue')
conflicts=('flashplugin')
provides=('flashplayer' 'flashplugin')
license=('custom')
options=(!strip)
install=flashplugin.install
backup=(etc/adobe/mms.cfg)
 
package() {
# flash plugin
install -D -m755 libflashplayer.so ${pkgdir}/usr/lib/mozilla/plugins/libflashplayer.so
# kde kcm plugin & standalone settings executable
install -D -m755 ${srcdir}/usr/${_lib}/kde4/kcm_adobe_flash_player.so ${pkgdir}/usr/lib/kde4/kcm_adobe_flash_player.so
install -D -m755 ${srcdir}/usr/bin/flash-player-properties ${pkgdir}/usr/bin/flash-player-properties
 
# desktop entries for kde & gnome
install -D -m644 ${srcdir}/usr/share/kde4/services/kcm_adobe_flash_player.desktop ${pkgdir}/usr/share/kde4/services/kcm_adobe_flash_player.desktop
install -D -m644 ${srcdir}/usr/share/applications/flash-player-properties.desktop ${pkgdir}/usr/share/applications/flash-player-properties.desktop
 
# icons
install -D -m644 ${srcdir}/usr/share/pixmaps/flash-player-properties.png ${pkgdir}/usr/share/pixmaps/flash-player-properties.png
for i in 16 22 24 32 48; do
install -D -m644 usr/share/icons/hicolor/${i}x${i}/apps/flash-player-properties.png "${pkgdir}/usr/share/icons/hicolor/${i}x${i}/apps/flash-player-properties.png"
done
 
# license & config file (defaults to hardware offload disabled)
install -D -m644 ${_licensefile} ${pkgdir}/usr/share/licenses/${pkgname}/${_licensefile}
install -D -m644 mms.cfg ${pkgdir}/etc/adobe/mms.cfg
}

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.