# Contributor: Carlo Landmeter # Maintainer: Natanael Copa pkgname=libcdio pkgver=2.0.0 pkgrel=0 pkgdesc="GNU Compact Disc Input and Control Library" url="https://www.gnu.org/software/libcdio/" arch="all" license="GPL-3.0" checkdepends="bash" makedepends="libcddb-dev ncurses-dev linux-headers" subpackages="$pkgname-dev $pkgname-doc $pkgname-tools ${pkgname}++:_cpp" source="https://ftp.gnu.org/gnu/libcdio/${pkgname}-${pkgver}.tar.gz disable-broken-test.patch" 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 make } check() { cd "$builddir" make check } 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="8f48cc71d28b427b16f48e50bcaf0aea171055c72a9aeee383ac4374eee1d3d288323814c3a3f308a9ba097aa815319429c1931072897985a3b02b814766fd4f libcdio-2.0.0.tar.gz be0149128bb2fa131f514bcff848279d826340a99a05b958e104f4640bda1a89d6146b0ec348783f4bbd8a3c313c41297152f75ee04f492f08b337bd79dd9c3e disable-broken-test.patch"