# Contributor: Carlo Landmeter # Maintainer: Natanael Copa pkgname=libcdio pkgver=0.94 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 linux-headers" 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 } 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/ } sha512sums="e1d3c96c4acc7be923c97109c3f76223adc00b293278daef7d5008b1e5d67f33402f9f224f05120e9e1e8b3a8d1fa1b0bd5069dc6dd309741e3590e2c19e0e66 libcdio-0.94.tar.gz"