gtk/flashplugin/PKGBUILD
2018-11-21 04:32:36 +01:00

34 lines
1.4 KiB
Bash

pkgname=flashplugin
pkgver=31.0.0.153
pkgrel=1
pkgdesc='Adobe Flash Player'
url='https://get.adobe.com/flashplayer/'
arch=('x86_64')
depends=('mozilla-common' 'libxt' 'libxpm' 'gtk2' 'nss' 'curl' 'hicolor-icon-theme')
makedepends=('chrpath')
optdepends=('libvdpau: GPU acceleration on Nvidia card')
provides=('flashplayer')
license=('custom')
options=(!strip)
install='flashplugin.install'
backup=('etc/adobe/mms.cfg')
source=("flash_player_npapi_linux_$pkgver.x86_64.tar.gz::https://fpdownload.adobe.com/get/flashplayer/pdc/$pkgver/flash_player_npapi_linux.x86_64.tar.gz"
'mms.cfg')
md5sums=('2cf6e7b095e8d89ba6dc9e89386ba59b'
'f34aae6279b40e0bd2abfb0d9963d7b8')
package () {
cd ${srcdir}
msg "Plugin installation"
install -Dm755 libflashplayer.so "${pkgdir}/usr/lib/mozilla/plugins/libflashplayer.so"
install -Dm644 -t "$pkgdir/usr/share/licenses/$pkgname" license.pdf LGPL/*.txt
install -Dm644 mms.cfg "${pkgdir}/etc/adobe/mms.cfg"
install -Dm755 usr/bin/flash-player-properties "${pkgdir}/usr/bin/flash-player-properties"
install -Dm644 usr/share/applications/flash-player-properties.desktop "${pkgdir}/usr/share/applications/flash-player-properties.desktop"
for i in 16x16 22x22 24x24 32x32 48x48; do
install -Dm644 usr/share/icons/hicolor/${i}/apps/flash-player-properties.png \
"${pkgdir}/usr/share/icons/hicolor/${i}/apps/flash-player-properties.png"
done
}