summaryrefslogtreecommitdiff
path: root/user/libcdio/APKBUILD
diff options
context:
space:
mode:
authorA. Wilcox <AWilcox@Wilcox-Tech.com>2018-07-18 20:28:09 -0500
committerA. Wilcox <AWilcox@Wilcox-Tech.com>2018-07-18 20:28:09 -0500
commit0b9f7564a516edba9fe56384941f72593e3e8305 (patch)
tree149e24808786f22b85634327321bfc860154d6c4 /user/libcdio/APKBUILD
parenta99581fabefba43c1ea21fed1e93b149ba30f0e0 (diff)
downloadpackages-0b9f7564a516edba9fe56384941f72593e3e8305.tar.gz
packages-0b9f7564a516edba9fe56384941f72593e3e8305.tar.bz2
packages-0b9f7564a516edba9fe56384941f72593e3e8305.tar.xz
packages-0b9f7564a516edba9fe56384941f72593e3e8305.zip
user/libcdio: pull in, bump to 2.0.0, modernise/fix
Diffstat (limited to 'user/libcdio/APKBUILD')
-rw-r--r--user/libcdio/APKBUILD55
1 files changed, 55 insertions, 0 deletions
diff --git a/user/libcdio/APKBUILD b/user/libcdio/APKBUILD
new file mode 100644
index 000000000..c1e7bc351
--- /dev/null
+++ b/user/libcdio/APKBUILD
@@ -0,0 +1,55 @@
+# Contributor: Carlo Landmeter
+# Maintainer:
+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+"
+depends=""
+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.bz2
+ disable-broken-test.patch"
+
+build() {
+ cd "$builddir"
+ LIBS="-ltinfo" ./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="a18abc9ec9e8189b5f37c037e16bf24056fa603610cef58684788515555878146ad43aec4ada5e93bf54b74d0ed6dae3683043613d5996d6687e59da8bb350a0 libcdio-2.0.0.tar.bz2
+be0149128bb2fa131f514bcff848279d826340a99a05b958e104f4640bda1a89d6146b0ec348783f4bbd8a3c313c41297152f75ee04f492f08b337bd79dd9c3e disable-broken-test.patch"