void-packages/srcpkgs/chromium-pepper-flash/template

47 lines
1.6 KiB
Text
Raw Normal View History

# Template file for 'chromium-pepper-flash'
pkgname=chromium-pepper-flash
version=12.0.0.77
_chromeVersion=33.0.1750.149-1
_channel='stable'
revision=1
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+=" e64c08c47f46de2a16270aa31cead8588f1ff34f0d4aae4941cb1db7db366a48"
elif [ "$XBPS_TARGET_MACHINE" = "i686" ]; then
_filename=google-chrome-${_channel}_${_chromeVersion}_i386.deb
checksum+=" e1fb67f4d1ea9ea3dbee812fc8e0c3e7dcedb611d768a6b016ecc463fa35d7ce"
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}/${pkgname}-${version}/eula_text.html license.html
2014-02-22 14:28:21 +00:00
vinstall "license.html" 644 "usr/share/licenses/chromium-pepper-flash"
2014-02-22 14:28:21 +00:00
vmkdir "etc/profile.d"
vinstall "chromium-pepper-flash.sh" 644 "etc/profile.d"
}