2014-02-15 13:59:50 +00:00
|
|
|
# Template file for 'chromium-pepper-flash'
|
|
|
|
pkgname=chromium-pepper-flash
|
2014-02-22 14:28:21 +00:00
|
|
|
version=12.0.0.70
|
2014-03-06 10:24:36 +00:00
|
|
|
_chromeVersion=33.0.1750.146-1
|
2014-02-15 13:59:50 +00:00
|
|
|
_channel='stable'
|
2014-03-06 10:24:36 +00:00
|
|
|
revision=2
|
2014-02-15 13:59:50 +00: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-06 10:24:36 +00:00
|
|
|
checksum+=" 3329afefce6e1c660c9dafe08bb8371e1ecc73ec84bb0f69d075964fb72c5714"
|
2014-02-15 13:59:50 +00:00
|
|
|
elif [ "$XBPS_TARGET_MACHINE" = "i686" ]; then
|
|
|
|
_filename=google-chrome-${_channel}_${_chromeVersion}_i386.deb
|
2014-03-06 10:24:36 +00:00
|
|
|
checksum+=" 0c8aaaf90a2b889979c95f69123f2b6f6b8ed36bbcf1c7b3faa5ebd6071f01eb"
|
2014-02-15 13:59:50 +00: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() {
|
|
|
|
ar x ${XBPS_SRCDISTDIR}/${_filename}
|
|
|
|
tar xf data.tar.lzma
|
|
|
|
}
|
|
|
|
|
|
|
|
do_build() {
|
2014-02-15 19:23:15 +00:00
|
|
|
sed "s|%VERSION%|${version}|" ${FILESDIR}/chromium-pepper-flash.sh.in > chromium-pepper-flash.sh
|
2014-02-15 13:59:50 +00: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-02-22 14:28:21 +00:00
|
|
|
cp ${XBPS_SRCDISTDIR}/eula_text.html license.html
|
|
|
|
vinstall "license.html" 644 "usr/share/licenses/chromium-pepper-flash"
|
2014-02-15 13:59:50 +00:00
|
|
|
|
2014-02-22 14:28:21 +00:00
|
|
|
vmkdir "etc/profile.d"
|
2014-02-15 13:59:50 +00:00
|
|
|
vinstall "chromium-pepper-flash.sh" 644 "etc/profile.d"
|
|
|
|
}
|