aboutsummaryrefslogtreecommitdiffstats
path: root/community/faad2/APKBUILD
blob: 6c85d9d2a06cf2119243780e8724603ac950d4f4 (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
56
57
58
59
60
61
62
63
64
65
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=faad2
pkgver=2.9.2
_pkgver="${pkgver//./_}"
pkgrel=0
pkgdesc="ISO AAC audio decoder"
url="https://github.com/knik0/faad2"
arch="all"
options="!check"  # No test suite.
license="GPL-2.0-or-later"
subpackages="$pkgname-static $pkgname-dev $pkgname-doc $pkgname-libs"
makedepends="autoconf automake libtool"
source="$pkgname-$pkgver.tar.gz::https://github.com/knik0/faad2/archive/$_pkgver.tar.gz"
builddir="$srcdir/$pkgname-$_pkgver"

# secfixes:
#   2.9.0-r0:
#     - CVE-2019-6956
#     - CVE-2018-20196
#     - CVE-2018-20199
#     - CVE-2018-20360
#     - CVE-2018-20362
#     - CVE-2018-19504
#     - CVE-2018-20195
#     - CVE-2018-20198
#     - CVE-2018-20358
#     - CVE-2018-20194
#     - CVE-2018-19503
#     - CVE-2018-20197
#     - CVE-2018-20357
#     - CVE-2018-20359
#     - CVE-2018-20361
#     - CVE-2019-15296
#     - CVE-2018-19502

prepare() {
	default_prepare

	# manfile has bad name
	mv frontend/faad.man frontend/faad.1 && \
		sed -i -e 's:faad\.man:faad.1:' frontend/Makefile.am

	autoreconf -fi
}

build() {
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr
	make
}

package() {
	make DESTDIR="$pkgdir" install
}

static() {
	depends=""
	pkgdesc="$pkgdesc (static libraries)"
	mkdir -p "$subpkgdir"/usr/lib
	mv "$pkgdir"/usr/lib/*.a "$subpkgdir"/usr/lib
}

sha512sums="996c279a56c6abde13da964b91d4ff87ac4c611e889f1dd59882fa3898093dec68ab0714cf106db10a5e24952e2d6dddc049ec9bf4f07ff68378a705d5debee2  faad2-2.9.2.tar.gz"