# Contributor: Carlo Landmeter # Maintainer: Natanael Copa pkgname=libcdio pkgver=0.93 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 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="d154476feaac5a7b5f180e83eaf3d689 libcdio-0.93.tar.gz" sha256sums="4972cd22fd8d0e8bff922d35c7a645be0db0ab0e7b3dfaecc9cd8272429d6975 libcdio-0.93.tar.gz" sha512sums="a2ea7a1f219e1abdbbb42633003e10ff77b6a879133c96a0c8e7a80fe205c08a48bade1d9941c6493f24d6eb2ed410469b57e19d9740a4400266a6f3f9d3da91 libcdio-0.93.tar.gz"