aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--non-free/chromium-widevine/APKBUILD53
1 files changed, 53 insertions, 0 deletions
diff --git a/non-free/chromium-widevine/APKBUILD b/non-free/chromium-widevine/APKBUILD
new file mode 100644
index 0000000000..ff9c94b4e2
--- /dev/null
+++ b/non-free/chromium-widevine/APKBUILD
@@ -0,0 +1,53 @@
+# Contributor: Carlo Landmeter <clandmeter@gmail.com>
+# Maintainer:
+pkgname=chromium-widevine
+pkgver=1.4.8.1008
+pkgrel=0
+pkgdesc="A browser plugin designed for the viewing of premium video content"
+url="https://www.widevine.com/"
+arch="x86 x86_64"
+license="custom"
+depends="chromium libc6-compat"
+makedepends=""
+install=""
+options="!strip !check"
+subpackages=""
+source="https://dl.google.com/widevine-cdm/$pkgver-linux-x64.zip
+ https://dl.google.com/widevine-cdm/$pkgver-linux-ia32.zip
+ "
+builddir="$srcdir/"
+
+unpack() {
+ local i
+ for i in $source;do
+ case $i in
+ *32*)
+ mkdir -p "$srcdir"/x86
+ unzip $SRCDEST/${i##*/} -d "$srcdir"/x86 ;;
+ *64*)
+ mkdir -p "$srcdir"/x86_64
+ unzip $SRCDEST/${i##*/} -d "$srcdir"/x86_64 ;;
+ esac
+ done
+}
+
+build() {
+ return 0
+}
+
+package() {
+ mkdir -p "$pkgdir"/usr/lib/chromium/
+ case $CARCH in
+ x86)
+ install -Dm644 "$srcdir"/x86/libwidevinecdm.so \
+ "$pkgdir"/usr/lib/chromium
+ ;;
+ x86_64)
+ install -Dm644 "$srcdir"/x86_64/libwidevinecdm.so \
+ "$pkgdir"/usr/lib/chromium
+ ;;
+ esac
+}
+
+sha512sums="37e037a5e0c320a6a577492050d86b2bbd00239610785b0f07326e6c47b6d1899ac4f6874ad1436982a95a13c11fd73e10e9287d88da0c1036dd6eb36fe91e65 1.4.8.1008-linux-x64.zip
+5af0f41dddf3077c2977a775a3009c435569892f7efa2110932424fda3556d6ecee76fbb1e9633e72b72e09a92b0b7fa2ac159e1741b0d4cd94e095b6e121bce 1.4.8.1008-linux-ia32.zip"