2015-01-11 08:17:47 +08:00
|
|
|
pkgname=pepperflashplugin
|
|
|
|
pkgdesc="Adobe/Google Pepper Flash Player plugin installer"
|
2015-12-09 20:46:15 +08:00
|
|
|
pkgver=20.0.0.228
|
2015-08-12 20:02:51 +08:00
|
|
|
pkgrel=1
|
2015-01-11 08:17:47 +08:00
|
|
|
arch=('any')
|
|
|
|
url="http://www.google.com/chrome"
|
|
|
|
license=('custom:chrome')
|
|
|
|
install=pepperflashplugin.install
|
|
|
|
depends=('rpmextract')
|
2015-01-20 06:41:35 +08:00
|
|
|
source=(chrome_pepper-${pkgver}::https://dl.google.com/linux/direct/google-chrome-stable_current_x86_64.rpm
|
2015-01-11 08:17:47 +08:00
|
|
|
license.html::https://www.google.com/chrome/intl/en/eula_text.html
|
|
|
|
chromium_pepperflashplayer.sh)
|
2015-12-09 20:46:15 +08:00
|
|
|
sha256sums=('416563ca102daf61f54b4ff0e5418b1e558bf45cc662d8c1588646665443629d'
|
2015-05-13 07:36:30 +08:00
|
|
|
'b35811bb330576631e64f7885c66720e0be4ca81afb04328b3a0f288a708e37f'
|
2015-01-18 20:24:43 +08:00
|
|
|
'747c53cba599662ccbce48b7961ca8bf64474a7cf7d751a49b4d063a31269d6a')
|
2015-01-11 08:17:47 +08:00
|
|
|
|
|
|
|
package() {
|
|
|
|
# create required directories
|
2015-01-16 05:53:34 +08:00
|
|
|
install -d "${pkgdir}"/usr/lib/PepperFlash
|
2015-01-11 08:17:47 +08:00
|
|
|
|
|
|
|
# copy the script to enable pepperflash con chromium
|
2015-01-16 05:53:34 +08:00
|
|
|
install -m644 "$srcdir/chromium_pepperflashplayer.sh" "$pkgdir/usr/lib/PepperFlash/chromium_pepperflashplayer.sh"
|
|
|
|
sed -i "s/\@FLASH_VERSION\@/$pkgver/" "$pkgdir/usr/lib/PepperFlash/chromium_pepperflashplayer.sh"
|
2015-01-11 08:17:47 +08:00
|
|
|
|
|
|
|
# copy the script to enable pepperflash con chromium
|
2015-01-20 06:41:35 +08:00
|
|
|
sed -i "s|CHROME_URL=.*|CHROME_URL=${source[0]#*::}|" "$startdir/pepperflashplugin.install"
|
2015-01-11 08:17:47 +08:00
|
|
|
sed -i "s/CHROME_SHA256=.*/CHROME_SHA256=${sha256sums[0]}/" "$startdir/pepperflashplugin.install"
|
|
|
|
|
|
|
|
PEPFLASH_MD5=$(md5sum "$srcdir/opt/google/chrome/PepperFlash/libpepflashplayer.so" | sed -e 's/\s.*//g')
|
|
|
|
MANIFEST_MD5=$(md5sum "$srcdir/opt/google/chrome/PepperFlash/manifest.json" | sed -e 's/\s.*//g')
|
|
|
|
echo $PEPFLASH_MD5
|
|
|
|
sed -i "s/PEPFLASH_MD5=.*/PEPFLASH_MD5=$PEPFLASH_MD5/" "$startdir/pepperflashplugin.install"
|
|
|
|
sed -i "s/MANIFEST_MD5=.*/MANIFEST_MD5=$MANIFEST_MD5/" "$startdir/pepperflashplugin.install"
|
|
|
|
|
|
|
|
# copy license
|
|
|
|
install -Dm644 "${srcdir}"/license.html "${pkgdir}"/usr/share/licenses/${pkgname}/license.html
|
|
|
|
}
|