mirror of
https://gitdl.cn/https://github.com/chakralinux/gtk.git
synced 2025-01-23 17:33:32 +08:00
34 lines
1.4 KiB
Bash
34 lines
1.4 KiB
Bash
pkgname=flashplugin
|
|
pkgver=32.0.0.114
|
|
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=('218682a72df53d3d0f5071802c198eb2'
|
|
'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
|
|
}
|