48 lines
1.5 KiB
Text
48 lines
1.5 KiB
Text
# Template file for 'chromium-pepper-flash'
|
|
pkgname=chromium-pepper-flash
|
|
version=12.0.0.70
|
|
_chromeVersion=33.0.1750.117-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+=" 5219f71e3c440e46992534927eb31569d9006ad3552243f43b78101f3258ea06"
|
|
elif [ "$XBPS_TARGET_MACHINE" = "i686" ]; then
|
|
_filename=google-chrome-${_channel}_${_chromeVersion}_i386.deb
|
|
checksum+=" 44537bea06172616f8b2b1fe33cba9b2230eadf6c85e10bb1d2292643075c129"
|
|
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() {
|
|
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"
|
|
env
|
|
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"
|
|
}
|