aboutsummaryrefslogtreecommitdiffstats
path: root/main/cdparanoia/APKBUILD
blob: fc065c1772ecc3365f7324be591f4492b6e9fec6 (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
53
54
55
# Contributor: Michael Mason <ms13sp@gmail.com>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=cdparanoia
pkgver=10.2
pkgrel=5
pkgdesc="An audio CD extraction application"
url="http://www.xiph.org/paranoia"
arch="all"
license="GPL"
depends=
makedepends="libtool autoconf automake"
install=
subpackages="$pkgname-dev $pkgname-doc $pkgname-libs"
patches="gcc.patch"
source="http://downloads.xiph.org/releases/cdparanoia/$pkgname-III-$pkgver.src.tgz
	$patches"

_builddir="$srcdir/cdparanoia-III-$pkgver"
prepare() {
	cd "$_builddir"
	for i in $patches; do
		msg $i
		patch -p1 -i "$srcdir"/$i || return 1
	done
	mv configure.guess config.guess
	mv configure.sub config.sub
	sed -i -e '/configure.\(guess\|sub\)/d' configure.in || return 1
	aclocal && autoconf || return 1
	libtoolize || return 1
}	

build() {
	cd "$_builddir"
	./configure --prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--infodir=/usr/share/info \
		|| return 1
	make -j1 || return 1
}

package() {
	cd "$_builddir"
	make prefix="$pkgdir"/usr MANDIR="$pkgdir"/usr/share/man install
}

libs() {
	pkgname="Libraries for libcdda_paranoia (Paranoia III)"
	replaces="cdparanoia"
	install -d "$subpkgdir"/usr
	mv "$pkgdir"/usr/lib "$subpkgdir"/usr/
}

md5sums="b304bbe8ab63373924a744eac9ebc652  cdparanoia-III-10.2.src.tgz
0555411001f5546162dfb798b37ebf16  gcc.patch"