void-packages/srcpkgs/chromium-pepper-flash/template
2014-03-06 11:33:38 +01:00

47 lines
1.6 KiB
Text

# Template file for 'chromium-pepper-flash'
pkgname=chromium-pepper-flash
version=12.0.0.70
_chromeVersion=33.0.1750.146-1
_channel='stable'
revision=2
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
checksum+=" 3329afefce6e1c660c9dafe08bb8371e1ecc73ec84bb0f69d075964fb72c5714"
elif [ "$XBPS_TARGET_MACHINE" = "i686" ]; then
_filename=google-chrome-${_channel}_${_chromeVersion}_i386.deb
checksum+=" 0c8aaaf90a2b889979c95f69123f2b6f6b8ed36bbcf1c7b3faa5ebd6071f01eb"
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}/${pkgname}-${version}/${_filename}
tar xf data.tar.lzma
}
do_build() {
sed "s|%VERSION%|${version}|" ${FILESDIR}/chromium-pepper-flash.sh.in > chromium-pepper-flash.sh
}
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"
cp ${XBPS_SRCDISTDIR}/eula_text.html license.html
vinstall "license.html" 644 "usr/share/licenses/chromium-pepper-flash"
vmkdir "etc/profile.d"
vinstall "chromium-pepper-flash.sh" 644 "etc/profile.d"
}