47 lines
1.6 KiB
Plaintext
47 lines
1.6 KiB
Plaintext
|
# Template file for 'chromium-pepper-flash'
|
||
|
pkgname=chromium-pepper-flash
|
||
|
version=12.0.0.44
|
||
|
_chromeVersion=32.0.1700.107-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+=" ca74beffd21e919d0f39fe2daa2e9b7b7924ea00af3ab82e8b97a76f9c0a50ec"
|
||
|
elif [ "$XBPS_TARGET_MACHINE" = "i686" ]; then
|
||
|
_filename=google-chrome-${_channel}_${_chromeVersion}_i386.deb
|
||
|
checksum+=" 023c0aee10a7a972cabee33cd936bf59b356d2cfd59c74cdc5daa665d7fed8ea"
|
||
|
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.template > 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"
|
||
|
vinstall "${XBPS_SRCDISTDIR}/eula_text.html" 644 "usr/share/licenses/chromium-pepper-flash/license.html"
|
||
|
|
||
|
vmkdir "usr/share/licenses/chromium-pepper-flash/license.html"
|
||
|
vinstall "chromium-pepper-flash.sh" 644 "etc/profile.d"
|
||
|
}
|