aboutsummaryrefslogtreecommitdiffstats
path: root/non-free
diff options
context:
space:
mode:
authorCarlo Landmeter <clandmeter@gmail.com>2017-09-29 10:18:48 +0200
committerCarlo Landmeter <clandmeter@gmail.com>2017-09-29 10:19:02 +0200
commita145f973a4ef1b6fce78ec99a87ef5b4cf98168c (patch)
tree55591f256f5da3ca36b251a30568015e863a5f72 /non-free
parent15819c0594a211b2b5f66f5e5fe669b6afbbcf77 (diff)
downloadaports-a145f973a4ef1b6fce78ec99a87ef5b4cf98168c.tar.bz2
aports-a145f973a4ef1b6fce78ec99a87ef5b4cf98168c.tar.xz
non-free/chromium-widevine: new aport
Diffstat (limited to 'non-free')
-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"