summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorA. Wilcox <AWilcox@Wilcox-Tech.com>2019-01-13 22:18:19 +0000
committerA. Wilcox <AWilcox@Wilcox-Tech.com>2019-01-13 22:18:19 +0000
commit300438f7eeb4d2e26ca89e8cbac97fb6608999f0 (patch)
treea1fa9da1935ffd80c7acf890978e896b9509404f
parent85c818fb6010454127b4ff621c7e4ecba6864eeb (diff)
downloadpackages-300438f7eeb4d2e26ca89e8cbac97fb6608999f0.tar.gz
packages-300438f7eeb4d2e26ca89e8cbac97fb6608999f0.tar.bz2
packages-300438f7eeb4d2e26ca89e8cbac97fb6608999f0.tar.xz
packages-300438f7eeb4d2e26ca89e8cbac97fb6608999f0.zip
user/libkdcraw: new package
-rw-r--r--user/libkdcraw/APKBUILD42
1 files changed, 42 insertions, 0 deletions
diff --git a/user/libkdcraw/APKBUILD b/user/libkdcraw/APKBUILD
new file mode 100644
index 000000000..6b346adad
--- /dev/null
+++ b/user/libkdcraw/APKBUILD
@@ -0,0 +1,42 @@
+# Contributor: A. Wilcox <awilfox@adelielinux.org>
+# Maintainer: A. Wilcox <awilfox@adelielinux.org>
+pkgname=libkdcraw
+pkgver=18.12.1
+pkgrel=0
+pkgdesc="RAW image file format support for KDE"
+url="https://www.KDE.org/"
+arch="all"
+license="GPL-2.0+ AND LGPL-2.0+"
+depends=""
+depends_dev="qt5-qtbase-dev"
+makedepends="$depends_dev cmake extra-cmake-modules libraw-dev"
+subpackages="$pkgname-dev"
+source="https://download.kde.org/stable/applications/$pkgver/src/libkdcraw-$pkgver.tar.xz"
+
+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="6adc597e93e6a299c50554c94fbf3bfcc934a97205af04ded7a5c84a980372e72eba23aba063548e5c6cb53a218bc04cbaefbd137450fade09939df578804ffb libkdcraw-18.12.1.tar.xz"