aboutsummaryrefslogtreecommitdiffstats
path: root/main/faac/APKBUILD
blob: be51679ccabf18b7a2f0191f53571f1442f65185 (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
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=faac
pkgver=1.30
pkgrel=0
pkgdesc="FAAC is an AAC audio encoder."
options="!check" # No testsuite
url="https://www.audiocoding.com/"
arch="all"
license="GPL-3.0-or-later"
makedepends="autoconf automake libtool"
subpackages="$pkgname-static $pkgname-dev $pkgname-doc"
source="faac-$pkgver.tar.gz::https://github.com/knik0/faac/archive/${pkgver/./_}.tar.gz"
builddir="$srcdir"/faac-${pkgver/./_}

# secfixes:
#   1.30:
#   - CVE-2018-19886

prepare() {
	default_prepare
	./bootstrap
}

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

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

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

sha512sums="8582cd580dba2a347d15dc4fab42020d7120d0552c54ab74cfaf59ba1b270abb94c67e39d42459a14cbc6e98f3fd00cbda589e1b4f0c7278e41bdef6ae7b6554  faac-1.30.tar.gz"