2014-02-15 14:59:50 +01:00
|
|
|
#
|
2014-03-13 13:20:17 +01:00
|
|
|
# This script will install the actual plugin, advise the user to read the
|
|
|
|
# license for Chrome and to re-login to have environment variables set
|
|
|
|
# properly.
|
2014-02-15 14:59:50 +01:00
|
|
|
#
|
2014-03-13 13:20:17 +01:00
|
|
|
|
|
|
|
BUILD_DIR="./var/tmp/${PKGNAME}.build"
|
|
|
|
|
2014-02-15 14:59:50 +01:00
|
|
|
case "${ACTION}" in
|
|
|
|
post)
|
2014-03-13 13:20:17 +01:00
|
|
|
. usr/lib/chromium-pepper-flash/chromium-pepper-vars.sh
|
|
|
|
|
|
|
|
mkdir -p "$BUILD_DIR"
|
|
|
|
(
|
|
|
|
cd "$BUILD_DIR"
|
|
|
|
xbps-uhelper fetch "${CHROME_URL}>$PKGNAME.deb"
|
|
|
|
echo "$CHROME_CHECKSUM $PKGNAME.deb" > chksum
|
|
|
|
sha256sum -c chksum || exit 1
|
|
|
|
|
|
|
|
ar x "$PKGNAME.deb"
|
2015-03-06 23:17:11 +01:00
|
|
|
tar xf data.tar.xz
|
2014-03-13 13:20:17 +01:00
|
|
|
) || {
|
|
|
|
echo Error while extracting;
|
|
|
|
rm -r $BUILD_DIR;
|
|
|
|
exit 1;
|
|
|
|
}
|
|
|
|
mv $BUILD_DIR/opt/google/chrome/PepperFlash/libpepflashplayer.so "usr/lib/chromium-pepper-flash"
|
|
|
|
mv $BUILD_DIR/opt/google/chrome/PepperFlash/manifest.json "usr/lib/chromium-pepper-flash"
|
|
|
|
rm -r $BUILD_DIR
|
2014-02-15 14:59:50 +01:00
|
|
|
;;
|
|
|
|
esac
|
|
|
|
|