`basename $PWD`: adding chromium-pepper-flash

This commit is contained in:
Enno Boland 2014-02-15 14:59:50 +01:00
parent db45ff6017
commit 3939d87024
3 changed files with 74 additions and 0 deletions

View File

@ -0,0 +1,27 @@
#
# This script will advise the user to read the license for Chrome
# and to re-login to have environment variables set properly
#
case "${ACTION}" in
pre)
;;
post)
cat << _EOF
=====================================================================
- The Pepper Adobe Flashplayer package is licensed software.
You MUST read and agree to the license stored in
/usr/share/licenses/chromium-pepper-flash/license.html
before using it.
- Please re-login to update CHROME_FLAGS or re-source
/etc/profile:
$ source /etc/profile
=====================================================================
_EOF
;;
esac

View File

@ -0,0 +1 @@
export CHROME_FLAGS="--ppapi-flash-path=/usr/lib/chromium-pepper-flash/libpepflashplayer.so --ppapi-flash-version='%VERSION%'"

View File

@ -0,0 +1,46 @@
# 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"
}