aboutsummaryrefslogtreecommitdiffstats
path: root/main/flac/APKBUILD
blob: d22667634f4eeb1717d94d3a3c672a97d31ee17a (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
45
46
47
48
49
50
51
52
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=flac
pkgver=1.3.2
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
	"

builddir="$srcdir/$pkgname-$pkgver"

prepare() {
	cd "$builddir"
	for i in $source; do
		case $i in
		*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
		esac
	done
}

build () {
	cd "$builddir"

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

package() {
	cd "$builddir"
	make DESTDIR="$pkgdir" install || return 1

	install -Dm0644 COPYING.Xiph \
		"$pkgdir"/usr/share/licenses/$pkgname/COPYING.Xiph
}
md5sums="454f1bfa3f93cc708098d7890d0499bd  flac-1.3.2.tar.xz"
sha256sums="91cfc3ed61dc40f47f050a109b08610667d73477af6ef36dcad31c31a4a8d53f  flac-1.3.2.tar.xz"
sha512sums="63910e8ebbe508316d446ffc9eb6d02efbd5f47d29d2ea7864da9371843c8e671854db6e89ba043fe08aef1845b8ece70db80f1cce853f591ca30d56ef7c3a15  flac-1.3.2.tar.xz"