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

62 lines
1.7 KiB
Bash
Raw Normal View History

# Template file for 'chromium-pepper-flash'
pkgname=chromium-pepper-flash
version=18.0.0.233
_chromeVersion=44.0.2403.157-1
_channel='stable'
_baseUrl='http://dl.google.com/linux/chrome/deb/pool/main/g/google-chrome-stable'
revision=2
short_desc="Pepper Flash plugin for Chromium"
maintainer="Enno Boland <eb@s01.de>"
homepage="http://www.google.com/chrome"
license="chrome"
lib32disabled=yes
repository=nonfree
only_for_archs="i686 x86_64"
depends="chromium binutils xz"
create_wrksrc=yes
case "${XBPS_TARGET_MACHINE}" in
x86_64)
_filename=google-chrome-${_channel}_${_chromeVersion}_amd64.deb
_chromeChecksum="e39bb092d7212e90357271af5212aeba3e8727ff0b94b151fb2bf31b7ac0e109"
;;
i686)
_filename=google-chrome-${_channel}_${_chromeVersion}_i386.deb
_chromeChecksum="78bde46ac1fceb08ea1dc848d63a69300df388cc723a4cb3fe50a6240c590e5b"
;;
esac
_chromeUrl="${_baseUrl}/${_filename}"
2014-12-13 18:33:42 +01:00
distfiles="${_chromeUrl}"
checksum="$_chromeChecksum"
skip_extraction="$_filename"
do_fetch() {
mkdir -p $wrksrc
cd $wrksrc
xbps-uhelper fetch $distfiles
echo "$checksum $_filename" | sha256sum -c || { sha256sum "$_filename"; return 1; }
}
do_extract() {
:
}
do_build() {
sed \
-e "s|%VERSION%|${version}|" \
${FILESDIR}/chromium-pepper-flash.sh.in > chromium-pepper-flash.sh
sed \
-e "s|%CHROME_URL%|${_chromeUrl}|" \
-e "s|%CHROME_CHECKSUM%|${_chromeChecksum}|" \
${FILESDIR}/chromium-pepper-vars.sh.in > chromium-pepper-vars.sh
}
do_install() {
vmkdir "usr/lib/chromium-pepper-flash"
vcopy chromium-pepper-vars.sh "usr/lib/chromium-pepper-flash"
2014-12-13 18:33:42 +01:00
vinstall "${FILESDIR}/LICENSE" 644 "usr/share/licenses/chromium-pepper-flash"
2014-02-22 15:28:21 +01:00
vmkdir "etc/profile.d"
vinstall "chromium-pepper-flash.sh" 644 "etc/profile.d"
}