summaryrefslogtreecommitdiff
path: root/user/libkcddb/APKBUILD
diff options
context:
space:
mode:
authorA. Wilcox <AWilcox@Wilcox-Tech.com>2018-03-24 15:47:40 -0500
committerA. Wilcox <AWilcox@Wilcox-Tech.com>2018-03-24 15:47:40 -0500
commit403493578aa5864d729c6c068db1df96c2d4b83f (patch)
treec315349ae4ea583f4fd743a00603d65db24e8639 /user/libkcddb/APKBUILD
parent624e00afcb2ea205b88fa4b5cd2fba427476d064 (diff)
downloadpackages-403493578aa5864d729c6c068db1df96c2d4b83f.tar.gz
packages-403493578aa5864d729c6c068db1df96c2d4b83f.tar.bz2
packages-403493578aa5864d729c6c068db1df96c2d4b83f.tar.xz
packages-403493578aa5864d729c6c068db1df96c2d4b83f.zip
user/libkcddb: new package
Diffstat (limited to 'user/libkcddb/APKBUILD')
-rw-r--r--user/libkcddb/APKBUILD46
1 files changed, 46 insertions, 0 deletions
diff --git a/user/libkcddb/APKBUILD b/user/libkcddb/APKBUILD
new file mode 100644
index 000000000..443d2323d
--- /dev/null
+++ b/user/libkcddb/APKBUILD
@@ -0,0 +1,46 @@
+# Contributor: A. Wilcox <awilfox@adelielinux.org>
+# Maintainer: A. Wilcox <awilfox@adelielinux.org>
+pkgname=libkcddb
+pkgver=17.12.2
+pkgrel=0
+pkgdesc="Library to retrieve audio CD metadata from the Internet"
+url="http://projects.kde.org/projects/kde/kdemultimedia/libkcddb"
+arch="all"
+license="LGPL-2.0+"
+depends=""
+depends_dev="qt5-qtbase-dev kconfig-dev kcodecs-dev kio-dev kwidgetsaddons-dev"
+makedepends="$depends_dev cmake extra-cmake-modules kdoctools-dev ki18n-dev"
+install=""
+subpackages="$pkgname-dev $pkgname-doc $pkgname-lang"
+source="http://download.kde.org/stable/applications/$pkgver/src/libkcddb-$pkgver.tar.xz
+ update-tests.patch"
+builddir="$srcdir/libkcddb-$pkgver"
+
+build() {
+ cd "$builddir"
+ if [ "$CBUILD" != "$CHOST" ]; then
+ CMAKE_CROSSOPTS="-DCMAKE_SYSTEM_NAME=Linux -DCMAKE_HOST_SYSTEM_NAME=Linux"
+ fi
+ cmake \
+ -DCMAKE_INSTALL_PREFIX=/usr \
+ -DCMAKE_INSTALL_LIBDIR=lib \
+ -DBUILD_SHARED_LIBS=True \
+ -DCMAKE_BUILD_TYPE=RelWithDebugInfo \
+ -DCMAKE_CXX_FLAGS="$CXXFLAGS" \
+ -DCMAKE_C_FLAGS="$CFLAGS" \
+ ${CMAKE_CROSSOPTS}
+ make
+}
+
+check() {
+ cd "$builddir"
+ CTEST_OUTPUT_ON_FAILURE=TRUE ctest
+}
+
+package() {
+ cd "$builddir"
+ make DESTDIR="$pkgdir" install
+}
+
+sha512sums="3c19f2f7b77ed6334dfeea725f996cdfe73531f0e2be1d42d689e810080d29f1f4f16d6f3e8c9c820e189a08ce560440d012b37aae465e60746e71ba9d9476ba libkcddb-17.12.2.tar.xz
+81085d4fd1e34a14cdbd436c177904a3e1a4520381e85692abbc3b4126c7bd8b11da63d755ac51dc86dc1345482524cc6f74615afe23fac193c98227dffe0fa8 update-tests.patch"