summaryrefslogtreecommitdiff
path: root/user/libkexiv2
diff options
context:
space:
mode:
authorA. Wilcox <AWilcox@Wilcox-Tech.com>2019-01-15 16:46:12 +0000
committerA. Wilcox <AWilcox@Wilcox-Tech.com>2019-01-15 16:46:12 +0000
commit391a4fd0e39dfca48f8becb08fb41005af5719c5 (patch)
tree8c2a73d7bc282c90dc0d64ce09ba23982288335a /user/libkexiv2
parenta24ad667809fb18040aa41c196706c181eb05410 (diff)
downloadpackages-391a4fd0e39dfca48f8becb08fb41005af5719c5.tar.gz
packages-391a4fd0e39dfca48f8becb08fb41005af5719c5.tar.bz2
packages-391a4fd0e39dfca48f8becb08fb41005af5719c5.tar.xz
packages-391a4fd0e39dfca48f8becb08fb41005af5719c5.zip
user/libkexiv2: new package
Diffstat (limited to 'user/libkexiv2')
-rw-r--r--user/libkexiv2/APKBUILD42
1 files changed, 42 insertions, 0 deletions
diff --git a/user/libkexiv2/APKBUILD b/user/libkexiv2/APKBUILD
new file mode 100644
index 000000000..d9017d837
--- /dev/null
+++ b/user/libkexiv2/APKBUILD
@@ -0,0 +1,42 @@
+# Contributor: A. Wilcox <awilfox@adelielinux.org>
+# Maintainer: A. Wilcox <awilfox@adelielinux.org>
+pkgname=libkexiv2
+pkgver=18.12.1
+pkgrel=0
+pkgdesc="KDE integration with Exiv2 EXIF data library"
+url="https://www.KDE.org/"
+arch="all"
+license="GPL-2.0+"
+depends=""
+depends_dev="qt5-qtbase-dev"
+makedepends="$depends_dev cmake extra-cmake-modules exiv2-dev"
+subpackages="$pkgname-dev"
+source="https://download.kde.org/stable/applications/$pkgver/src/libkexiv2-$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="f89d105c4e081311851d649065640ed9b53761d8eaf273afc734a34dae52df9e834806a6d71299312f95e5c8267414efee1b30671b4469a1b6b604b0de90e6a0 libkexiv2-18.12.1.tar.xz"