summaryrefslogtreecommitdiffstats
path: root/main/libcdio-paranoia/APKBUILD
blob: 5b1af0b11934aa3fe6f9b57268f7e01addc1eb4a (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.93_p1
_ver=${pkgver/_p/+}
pkgrel=4
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 autoconf automake libtool"
install=""
subpackages="$pkgname-dev $pkgname-doc"
source="http://ftp.gnu.org/gnu/libcdio/libcdio-paranoia-10.2+$_ver.tar.gz
	"
_builddir="$srcdir"/libcdio-paranoia-10.2+$_ver
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 \
		--build=$CBUILD \
		--host=$CHOST \
		--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="4fb07fa47db24b71d315d40c9c6cecfb  libcdio-paranoia-10.2+0.93+1.tar.gz"
sha256sums="4617792b4eb301de45b61732bdc0617447ad06b53068ae45db37695275c0dd4c  libcdio-paranoia-10.2+0.93+1.tar.gz"
sha512sums="2bb418c99ef037aeb90ba3db841ea9182c5bc401e74c6f4b552730e6c8561552f7d3e27be71ef4fbb07b4fcd9db418a4fe330d5278e8f41cdd99c757aa4b8bc6  libcdio-paranoia-10.2+0.93+1.tar.gz"