PKGBUILD 1.91 KB
Newer Older
Manuel's avatar
Manuel committed
1
pkgname=flashplugin
2
pkgver=29.0.0.140
3
pkgrel=1
Manuel's avatar
Manuel committed
4
pkgdesc='Adobe Flash Player'
Jeff Huang's avatar
Jeff Huang committed
5
url='https://get.adobe.com/flashplayer/'
Manuel's avatar
Manuel committed
6
arch=('x86_64')
7
depends=('mozilla-common' 'libxt' 'libxpm' 'gtk2' 'nss' 'curl' 'hicolor-icon-theme')
Jeff Huang's avatar
Jeff Huang committed
8
makedepends=('chrpath')
Manuel's avatar
Manuel committed
9 10 11 12 13
optdepends=('libvdpau: GPU acceleration on Nvidia card')
provides=('flashplayer')
license=('custom')
options=(!strip)
install='flashplugin.install'
BrLi's avatar
BrLi committed
14
backup=('etc/adobe/mms.cfg')
Jeff Huang's avatar
Jeff Huang committed
15
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"
Bruce Liu's avatar
Bruce Liu committed
16
        'mms.cfg' 'kcm.patch')
17
md5sums=('658110b842a0e44f74fc16af0d8e3ab6'
Bruce Liu's avatar
Bruce Liu committed
18 19
         'f34aae6279b40e0bd2abfb0d9963d7b8'
         '798f7d43ed8c0a35e984e51f61b6a1e6')
20

Bruce Liu's avatar
Bruce Liu committed
21 22 23
prepare() {
    patch -Np1 ${srcdir}/usr/share/kde4/services/kcm_adobe_flash_player.desktop kcm.patch
}
Manuel's avatar
Manuel committed
24 25 26

package () {
    cd ${srcdir}
Manuel's avatar
Fix  
Manuel committed
27
   
BrLi's avatar
BrLi committed
28
    msg "Plugin installation"
29
    install -Dm755 libflashplayer.so "${pkgdir}/usr/lib/mozilla/plugins/libflashplayer.so"
Jeff Huang's avatar
Jeff Huang committed
30
    install -Dm644 -t "$pkgdir/usr/share/licenses/$pkgname" license.pdf LGPL/*.txt
AlmAck's avatar
AlmAck committed
31
    install -Dm644 mms.cfg "${pkgdir}/etc/adobe/mms.cfg"
32 33
    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"
Manuel's avatar
Cleanup  
Manuel committed
34 35
    for i in 16x16 22x22 24x24 32x32 48x48; do
        install -Dm644 usr/share/icons/hicolor/${i}/apps/flash-player-properties.png \
36
            "${pkgdir}/usr/share/icons/hicolor/${i}/apps/flash-player-properties.png"
Manuel's avatar
Cleanup  
Manuel committed
37
    done
38

BrLi's avatar
BrLi committed
39
    msg 'KCM install in /usr'
Manuel's avatar
Fix  
Manuel committed
40
    install -Dm755 usr/lib64/kde4/kcm_adobe_flash_player.so "${pkgdir}/usr/lib/kde4/kcm_adobe_flash_player.so"
Jeff Huang's avatar
Jeff Huang committed
41
    chrpath -d "$pkgdir/usr/lib/kde4/kcm_adobe_flash_player.so"
Manuel's avatar
Fix  
Manuel committed
42
    install -Dm644 usr/share/kde4/services/kcm_adobe_flash_player.desktop "${pkgdir}/usr/share/kde4/services/kcm_adobe_flash_player.desktop"
Manuel's avatar
Manuel committed
43
}