2014-02-15 14:59:50 +01:00
|
|
|
# Template file for 'chromium-pepper-flash'
|
|
|
|
pkgname=chromium-pepper-flash
|
2014-03-13 09:42:37 +01:00
|
|
|
version=12.0.0.77
|
|
|
|
_chromeVersion=33.0.1750.149-1
|
2014-02-15 14:59:50 +01:00
|
|
|
_channel='stable'
|
2014-03-13 09:42:37 +01:00
|
|
|
revision=1
|
2014-02-15 14:59:50 +01:00
|
|
|
distfiles="http://www.google.com/chrome/intl/en/eula_text.html"
|
|
|
|
checksum=8dd9b0034b69d523eab459ee3b00379421e4e41b780014b0345aba5697a86bc4
|
|
|
|
if [ "$XBPS_TARGET_MACHINE" = "x86_64" ]; then
|
|
|
|
_filename=google-chrome-${_channel}_${_chromeVersion}_amd64.deb
|
2014-03-13 09:42:37 +01:00
|
|
|
checksum+=" e64c08c47f46de2a16270aa31cead8588f1ff34f0d4aae4941cb1db7db366a48"
|
2014-02-15 14:59:50 +01:00
|
|
|
elif [ "$XBPS_TARGET_MACHINE" = "i686" ]; then
|
|
|
|
_filename=google-chrome-${_channel}_${_chromeVersion}_i386.deb
|
2014-03-13 09:42:37 +01:00
|
|
|
checksum+=" e1fb67f4d1ea9ea3dbee812fc8e0c3e7dcedb611d768a6b016ecc463fa35d7ce"
|
2014-02-15 14:59:50 +01:00
|
|
|
fi
|
|
|
|
distfiles+=" http://dl.google.com/linux/chrome/deb/pool/main/g/google-chrome-stable/${_filename}"
|
|
|
|
short_desc="Pepper Flash plugin for Chromium"
|
|
|
|
maintainer="Enno Boland <eb@s01.de>"
|
|
|
|
homepage="http://www.google.com/chrome"
|
|
|
|
license="chrome"
|
|
|
|
|
|
|
|
nonfree=yes
|
|
|
|
only_for_archs="i686 x86_64"
|
|
|
|
depends="chromium"
|
|
|
|
makedepends="binutils"
|
|
|
|
|
|
|
|
do_extract() {
|
2014-03-06 11:33:38 +01:00
|
|
|
ar x ${XBPS_SRCDISTDIR}/${pkgname}-${version}/${_filename}
|
2014-02-15 14:59:50 +01:00
|
|
|
tar xf data.tar.lzma
|
|
|
|
}
|
|
|
|
|
|
|
|
do_build() {
|
2014-02-15 20:23:15 +01:00
|
|
|
sed "s|%VERSION%|${version}|" ${FILESDIR}/chromium-pepper-flash.sh.in > chromium-pepper-flash.sh
|
2014-02-15 14:59:50 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
do_install() {
|
|
|
|
vmkdir "usr/lib/chromium-pepper-flash"
|
|
|
|
vcopy "opt/google/chrome/PepperFlash/*" "usr/lib/chromium-pepper-flash"
|
|
|
|
|
|
|
|
vmkdir "usr/share/licenses/chromium-pepper-flash"
|
2014-03-13 09:42:37 +01:00
|
|
|
cp ${XBPS_SRCDISTDIR}/${pkgname}-${version}/eula_text.html license.html
|
2014-02-22 15:28:21 +01:00
|
|
|
vinstall "license.html" 644 "usr/share/licenses/chromium-pepper-flash"
|
2014-02-15 14:59:50 +01:00
|
|
|
|
2014-02-22 15:28:21 +01:00
|
|
|
vmkdir "etc/profile.d"
|
2014-02-15 14:59:50 +01:00
|
|
|
vinstall "chromium-pepper-flash.sh" 644 "etc/profile.d"
|
|
|
|
}
|