summaryrefslogtreecommitdiff
path: root/user/faad2/APKBUILD
blob: aec7e58ac277874e859808188518aae828d57b7d (plain) (blame)
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
# Maintainer:
pkgname=faad2
pkgver=2.10.1_git20230904
pkgrel=1
pkgdesc="ISO AAC audio decoder"
url="https://www.audiocoding.com/"
arch="all"
options="!check"  # No test suite.
license="GPL-2.0+"
depends=""
makedepends="cmake"
subpackages="$pkgname-dev $pkgname-doc"
#source="$pkgname-$pkgver.tar.gz::https://github.com/knik0/faad2/archive/$pkgver.tar.gz"
source="https://distfiles.adelielinux.org/source/$pkgname-$pkgver.tar.gz
	fix-x86-lrintf.patch
	fix-ensure-libraries-versioned.patch
	"

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

build() {
	cmake \
	  -DCMAKE_INSTALL_PREFIX=/usr \
	  -DCMAKE_INSTALL_LIBDIR=lib \
	  -DBUILD_SHARED_LIBS=True \
	  -DCMAKE_BUILD_TYPE=RelWithDebugInfo \
	  -DCMAKE_C_FLAGS="$CFLAGS" \
	  -Bbuild
	make -C build
}

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

doc() {
	default_doc
	mkdir -p "$subpkgdir"/usr/share/doc
	cp -r "$builddir"/docs \
		"$subpkgdir"/usr/share/doc/$pkgname
}

sha512sums="5ec65a70ebbb5dbb5e0bffa47499f8bb9436c28ce9a8947e9cede92bbb2441117bac01216989888956e245589c9db572dad17cc47d47ae908709e4e57a7f84b9  faad2-2.10.1_git20230904.tar.gz
2b83d5bf4d4136a4d53536cfd2f4d62174e3660f4a7f39bcedca516ae26a98f3b573db91fb689b20aa26a0d0968745944927c7898ea79bc7a5321971fe92a481  fix-x86-lrintf.patch
b30727cd1b422a820b30747b3374815b5568a0554945d344aaa4e95502add5d956fed0d1aea451bd97ef704272c8c65c7ec33afe7cbea4b642f7991a135cdc93  fix-ensure-libraries-versioned.patch"