blob: ff9c94b4e222b87c445a725a6f689749e82381ad (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
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"
|