summaryrefslogtreecommitdiffstats
path: root/main/libcdio/APKBUILD
blob: 7976d7bb052c8bb5952186cf0278cd7bf57f8555 (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
56
57
58
59
60
61
62
63
# Contributor: Carlo Landmeter
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=libcdio
pkgver=0.92
pkgrel=0
pkgdesc="GNU Compact Disc Input and Control Library"
url="http://www.gnu.org/software/libcdio/"
arch="all"
license="GPL3"
depends=
makedepends="libcddb-dev ncurses-dev"
if [ "$ALPINE_LIBC" != "eglibc" ]; then
	makedepends="$makedepends libiconv-dev"
fi
install=
subpackages="$pkgname-dev $pkgname-doc $pkgname-tools ${pkgname}++:_cpp"
source="http://ftp.gnu.org/gnu/libcdio/${pkgname}-${pkgver}.tar.gz"

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

prepare() {
	cd "$_builddir"
	# apply patches here
}

build() {
	cd "$_builddir"
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--infodir=/usr/share/info \
		--disable-vcd-info \
		--disable-static \
		--disable-rpath \
		--disable-cpp-progs \
		|| return 1
	make || return 1
}

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

tools() {
	pkgdesc="libcdio example tools"
	install -d "$subpkgdir"/usr
	mv "$pkgdir"/usr/bin "$subpkgdir"/usr/
}

_cpp() {
	pkgdesc="libcdio bindings for C++"
	install -d "$subpkgdir"/usr/lib
	mv "$pkgdir"/usr/lib/*++.* "$subpkgdir"/usr/lib/
}

md5sums="86f3f2869c1d34e4c6e52db77992b918  libcdio-0.92.tar.gz"
sha256sums="3336bf352aff43b5023e41a6d23525172a3b4ee433c467bd0fab5b8becb33fad  libcdio-0.92.tar.gz"
sha512sums="aeeb51c87f966683a1f10960e4d000098603adfbd8036cff17f62afa5de08a2dbe4f8df7d1bc1fd0438c0ac5f868b2950ed9379ea17b7d98fbd23ef023777747  libcdio-0.92.tar.gz"