summaryrefslogtreecommitdiffstats
path: root/main/flac/APKBUILD
blob: b846f072fe88ca3b1b0d3b119c5cc5d26e60ea32 (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
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=flac
pkgver=1.2.1
pkgrel=6
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.sf.net/sourceforge/$pkgname/$pkgname-$pkgver.tar.gz
	"

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

	./configure --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="153c8b15a54da428d1f0fadc756c22c7  flac-1.2.1.tar.gz"