aboutsummaryrefslogtreecommitdiffstats
path: root/community/libvpx/APKBUILD
blob: 4ab88b1ab1c896fcfea0699d82f7b3016d651960 (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
54
55
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=libvpx
pkgver=1.8.2
pkgrel=0
pkgdesc="Library for the vp8 codec"
url="https://www.webmproject.org/"
arch="all"
license="BSD-3-Clause"
makedepends="coreutils yasm bash perl diffutils linux-headers" # linux-headers is needed on ppc64le
subpackages="$pkgname-dev $pkgname-utils"
source="$pkgname-$pkgver.tar.gz::https://github.com/webmproject/libvpx/archive/v$pkgver.tar.gz
	fix-arm-float-abi.patch
	"

# secfixes:
#   1.8.2-r0:
#     - CVE-2020-0034
#   1.8.1-r0:
#     - CVE-2019-9371
#     - CVE-2019-9433
#     - CVE-2019-9325
#     - CVE-2019-9232

build() {
	# build fix for arm
	export CROSS=" "
	bash ./configure \
		--enable-pic \
		--enable-libs \
		--enable-runtime-cpu-detect \
		--enable-vp8 \
		--enable-vp9 \
		--enable-shared \
		--disable-install-srcs \
		--enable-postproc \
		--disable-static
	make
}

package() {
	make DIST_DIR="$pkgdir"/usr install
	chmod 644 "$pkgdir"/usr/include/vpx/*.h \
		"$pkgdir"/usr/lib/pkgconfig/*
	chown root:root -R "$pkgdir"
	chmod 755 "$pkgdir"/usr/lib/*
}

utils() {
	pkgdesc="VP8 utilities and tools"
	install -d "$subpkgdir"/usr
	mv "$pkgdir"/usr/bin "$subpkgdir"/usr/
}

sha512sums="da2ab0775a28ddd78654bbe46886e833d4ef7ba91867fc1427dceced735b6177eff06b24f204c075c50c3a5cadc5be6a1fb213c44df189218a543b52554f3a38  libvpx-1.8.2.tar.gz
4eadbc2f4eb68eaff35cf85515aef271d6fd47293a53cba7b7a6e9e0fb71106dfb5ded45b9e9ba83264a91846e4a5fa4db42e39fc3eaff6ac37769e622f90f6c  fix-arm-float-abi.patch"