ppflash: pkgrel++, add back chromium flag file

- the chromium flag file is now installed by default to /etc/chromium
- we're diverged from Arch as they're using customized launcher while we
still based ours on gentoo and Debian, as the legacy one provided by
Arch
This commit is contained in:
Chaoting Liu 2016-11-02 09:50:49 +00:00
parent e41719c20e
commit a654b665fe
2 changed files with 17 additions and 4 deletions

View File

@ -1,20 +1,26 @@
pkgname=pepperflashplugin pkgname=pepperflashplugin
pkgdesc="Adobe/Google Pepper Flash Player plugin installer" pkgdesc="Adobe/Google Pepper Flash Player plugin installer"
pkgver=23.0.0.205 pkgver=23.0.0.205
pkgrel=2 pkgrel=3
arch=('x86_64') arch=('x86_64')
url="http://www.adobe.com/downloads.html" url="http://www.adobe.com/downloads.html"
license=('custom') license=('custom')
source=("https://fpdownload.adobe.com/pub/flashplayer/pdc/$pkgver/flash_player_ppapi_linux.x86_64.tar.gz" source=("https://fpdownload.adobe.com/pub/flashplayer/pdc/$pkgver/flash_player_ppapi_linux.x86_64.tar.gz"
"http://wwwimages.adobe.com/content/dam/acom/en/legal/licenses-terms/pdf/Flash_Player_${pkgver%%.*}_0.pdf") "http://wwwimages.adobe.com/content/dam/acom/en/legal/licenses-terms/pdf/Flash_Player_${pkgver%%.*}_0.pdf"
md5sums=('1ed9c0d030bb6e167acfb0d0e2a08d8a' 'chromium_pepperflashplayer.sh')
'0208c2cf0629c79f2cd2d30016e0264f') sha1sums=('6682f6b9f58c348fe7bd617d6c4ea66f0df0c320'
'05d437c6ec042fdf37d61db658efcc6780efb307'
'9de6c84623820f3de10df6e33274794dfb808a01')
package() { package() {
# install flashplayer plugin # install flashplayer plugin
install -Dm644 libpepflashplayer.so manifest.json -t $pkgdir/usr/lib/PepperFlash/ install -Dm644 libpepflashplayer.so manifest.json -t $pkgdir/usr/lib/PepperFlash/
# copy the script to enable pepperflash on chromium
install -Dm644 "$srcdir/chromium_pepperflashplayer.sh" "$pkgdir/etc/chromium/default"
sed -i "s/\@FLASH_VERSION\@/$pkgver/" "$pkgdir/etc/chromium/default"
# copy license # copy license
install -Dm644 "${srcdir}"/README "${pkgdir}"/usr/share/licenses/${pkgname}/README install -Dm644 "${srcdir}"/README "${pkgdir}"/usr/share/licenses/${pkgname}/README
install -Dm644 $srcdir/LGPL/LGPL.txt $pkgdir/usr/share/licenses/$pkgname/LPGL.txt install -Dm644 $srcdir/LGPL/LGPL.txt $pkgdir/usr/share/licenses/$pkgname/LPGL.txt

View File

@ -0,0 +1,7 @@
# Include this script from /etc/chromium-browser/default to enable
# the Adobe/Google Pepper Flash plugin.
FLASH_VERSION=@FLASH_VERSION@
CHROMIUM_FLAGS="$CHROMIUM_FLAGS --ppapi-flash-path=/usr/lib/PepperFlash/libpepflashplayer.so \
--ppapi-flash-version=$FLASH_VERSION"