aboutsummaryrefslogtreecommitdiffstats
path: root/main/flac/APKBUILD
blob: 7ebcf4dc126dd80a4861fd92462b7b9caff1e932 (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
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=flac
pkgver=1.3.0
pkgrel=0
pkgdesc="Free Lossless Audio Codec"
url="http://flac.sourceforge.net/"
arch="all"
license="custom:Xiph LGPL GPL FDL"
subpackages="$pkgname-dev $pkgname-doc"
depends=
makedepends="libogg-dev !libiconv"
source="http://downloads.xiph.org/releases/flac/flac-${pkgver}.tar.xz"

build () {
	cd "$srcdir"/$pkgname-$pkgver || return 1

	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--mandir=/usr/share/man \
		--enable-shared \
		--enable-ogg \
		--disable-sse \
		--disable-rpath \
		--disable-cpplibs \
		--with-pic \
		|| return 1
	make || return 1
}

package() {
	cd "$srcdir"/$pkgname-$pkgver || return 1
	make DESTDIR="$pkgdir" install || return 1
	rm "$pkgdir"/usr/lib/*.la

	install -Dm0644 COPYING.Xiph \
		"$pkgdir"/usr/share/licenses/$pkgname/COPYING.Xiph
}
md5sums="13b5c214cee8373464d3d65dee362cdd  flac-1.3.0.tar.xz"
sha256sums="fa2d64aac1f77e31dfbb270aeb08f5b32e27036a52ad15e69a77e309528010dc  flac-1.3.0.tar.xz"
sha512sums="9f62a83c2041ec6f02c0df65b796a920a0cd6ba6c2c034bb69535bca5df57ed69f96fe4bb41c0d5ccc229241d90efd2c7ec3785662b5a582a8e20e2e991e6477  flac-1.3.0.tar.xz"