chromium-widevine: fix post phase, really
This commit is contained in:
parent
b64242d4c1
commit
1b883431ad
3 changed files with 8 additions and 24 deletions
|
@ -1,29 +1,16 @@
|
||||||
# INSTALL
|
# INSTALL
|
||||||
DISTFILE="https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb"
|
DISTFILE="https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb"
|
||||||
BUILD_DIR="./var/tmp/$PKGNAME.build"
|
BUILD_DIR="/var/tmp/$PKGNAME.build"
|
||||||
case "$ACTION" in
|
case "$ACTION" in
|
||||||
pre)
|
post)
|
||||||
# Actions to execute before the package files are unpacked.
|
# Actions to execute before the package files are unpacked.
|
||||||
mkdir -p $BUILD_DIR
|
mkdir -p $BUILD_DIR
|
||||||
xbps-uhelper fetch "${DISTFILE}>$BUILD_DIR/$PKGNAME.deb"
|
xbps-uhelper fetch "${DISTFILE}>$BUILD_DIR/$PKGNAME.deb"
|
||||||
;;
|
|
||||||
post)
|
|
||||||
# Things that have to happen no matter what
|
# Things that have to happen no matter what
|
||||||
ar x "$BUILD_DIR/$PKGNAME.deb"
|
cd $BUILD_DIR
|
||||||
tar xf data.tar.xz
|
ar x $PKGNAME.deb
|
||||||
mv $BUILD_DIR/opt/google/chrome/libwidevinecdm.so usr/lib/${PKGNAME}
|
tar xf data.tar.xz --wildcards './opt/google/chrome/libwidevine*'
|
||||||
mv $BUILD_DIR/opt/google/chrome/libwidevinecdmadapter.so usr/lib/${PKGNAME}
|
mv opt/google/chrome/libwidevine* /usr/lib/chromium
|
||||||
|
|
||||||
if [ "$UPDATE" = "yes" ]; then
|
|
||||||
# actions to execute if package is being updated.
|
|
||||||
...
|
|
||||||
else
|
|
||||||
# actions to execute if package is being installed.
|
|
||||||
ln -s usr/lib/$PKGNAME/libwidevinecdm.so usr/lib/chromium
|
|
||||||
ln -s usr/lib/$PKGNAME/libwidevinecdmadapter.so usr/lib/chromium
|
|
||||||
fi
|
|
||||||
rm -r $BUILD_DIR
|
rm -r $BUILD_DIR
|
||||||
chmod 775 usr/lib/$PKGNAME/libwidevinecdm.so
|
|
||||||
chmod 775 usr/lib/$PKGNAME/libwidevinecdmadapter.so
|
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
|
@ -1,8 +1,5 @@
|
||||||
case "$ACTION" in
|
case "$ACTION" in
|
||||||
pre)
|
pre)
|
||||||
rm -f usr/lib/chromium/libwidevinecdm.so
|
rm -f usr/lib/chromium/libwidevine*
|
||||||
rm -f usr/lib/chromium/libwidevinecdmadapter.so
|
|
||||||
rm -f usr/lib/chromium-widevine/libwidevinecdm.so
|
|
||||||
rm -f usr/lib/chromium-widevine/libwidevinecdmadapter.so
|
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
|
@ -4,7 +4,7 @@ _channel="stable"
|
||||||
|
|
||||||
pkgname=chromium-widevine
|
pkgname=chromium-widevine
|
||||||
version=49.0.2623.110
|
version=49.0.2623.110
|
||||||
revision=3
|
revision=4
|
||||||
short_desc="A browser plugin designed for the viewing of premium video content"
|
short_desc="A browser plugin designed for the viewing of premium video content"
|
||||||
maintainer="Benjamin Hoffmeyer <hoffmeyer25@gmail.com>"
|
maintainer="Benjamin Hoffmeyer <hoffmeyer25@gmail.com>"
|
||||||
homepage="http://www.google.com/chrome"
|
homepage="http://www.google.com/chrome"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue