summaryrefslogtreecommitdiffstats
path: root/main/libcdio-paranoia/APKBUILD
blob: d82446378dbd67af3b0e22ef859b55d28b707879 (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
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=libcdio-paranoia
pkgver=0.90
pkgrel=1
pkgdesc="CD paranoia on top of libcdio"
url="http://www.gnu.org/software/libcdio/"
arch="all"
license="GPLv2+ and LGPLv2+"
depends=""
depends_dev="libcdio-dev"
makedepends="$depends_dev libiconv-dev autoconf automake libtool"
install=""
subpackages="$pkgname-dev $pkgname-doc"
source="http://ftp.gnu.org/gnu/libcdio/libcdio-paranoia-10.2+$pkgver.tar.gz
	header-fix.patch"

_builddir="$srcdir"/libcdio-paranoia-10.2+$pkgver
prepare() {
	local i
	cd "$_builddir"
	for i in $source; do
		case $i in
		*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
		esac
	done
	sed -i -e 's/AM_CONFIG_HEADER/AC_CONFIG_HEADER/' configure.ac || return 1

	autoreconf -i
}

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

package() {
	cd "$_builddir"
	make DESTDIR="$pkgdir" install || return 1
	rm -f "$pkgdir"/usr/lib/*.la
}

md5sums="7175764764c7fa22e1b802b9526c9411  libcdio-paranoia-10.2+0.90.tar.gz
5e70e747c5b0c7f14d65634d1ae565ff  header-fix.patch"
sha256sums="562d6158b2690cbb98609f7f8b2b4198c22cc4e275aad33f95b8e83c630eb3b4  libcdio-paranoia-10.2+0.90.tar.gz
e66fc08bcb0ff068ef064182883d0fa51dbec93ab1e286e5f154a63bec3286f0  header-fix.patch"
sha512sums="d8549d50b08cfd407672d49e43cc82525fb551a3f2ef1c6a4e3ac0c31ad209009249811d5a53172b59d1f858b7b0a3a929ef8e0a75322a27aaebdfb45d6e1531  libcdio-paranoia-10.2+0.90.tar.gz
ef92528a36b5685927aaaf8ac6b096069bcd6866613ff006ac4057c9a79d4fdf3f4fcf79e78d7901148b1bbb60f4bca1438e1080838c553139e9bb314b6427d7  header-fix.patch"