blob: 50ae0e0a3928af90b9a4b22d5e940bee68f552f1 (
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
|
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=faad2
pkgver=2.8.8
pkgrel=0
pkgdesc="ISO AAC audio decoder"
url="http://www.audiocoding.com/"
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="https://downloads.sourceforge.net/sourceforge/faac/$pkgname-$pkgver.tar.gz"
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="3275d292b2a9fe984842962f4d81202894bddd17033f7cd6df95466554cc968dfcbf2890ae8b1df37da0cd25d645cca0a687f07e39b9fc37dd004fd5956a82af faad2-2.8.8.tar.gz"
|