summaryrefslogtreecommitdiff
path: root/user/kamera
diff options
context:
space:
mode:
Diffstat (limited to 'user/kamera')
-rw-r--r--user/kamera/APKBUILD39
1 files changed, 39 insertions, 0 deletions
diff --git a/user/kamera/APKBUILD b/user/kamera/APKBUILD
new file mode 100644
index 000000000..0fbd05c42
--- /dev/null
+++ b/user/kamera/APKBUILD
@@ -0,0 +1,39 @@
+# Contributor: A. Wilcox <awilfox@adelielinux.org>
+# Maintainer: A. Wilcox <awilfox@adelielinux.org>
+pkgname=kamera
+pkgver=19.12.2
+pkgrel=0
+pkgdesc="Digital camera support for KDE"
+url="https://www.KDE.org/"
+arch="all"
+license="GPL-2.0+ AND LGPL-2.0+"
+depends=""
+makedepends="cmake extra-cmake-modules libgphoto2-dev qt5-qtbase-dev kio-dev
+ kconfig-dev kconfigwidgets-dev kdoctools-dev ki18n-dev kxmlgui-dev"
+subpackages="$pkgname-doc $pkgname-lang"
+source="https://download.kde.org/stable/release-service/$pkgver/src/kamera-$pkgver.tar.xz"
+
+build() {
+ 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() {
+ CTEST_OUTPUT_ON_FAILURE=TRUE ctest
+}
+
+package() {
+ make DESTDIR="$pkgdir" install
+}
+
+sha512sums="d97a47fe19257b86209c4427ba262f0fcb2f1b26d2d83fc4daa356bfde3ff67441b1a402808b508eeaf04ddb0cb07b7f07c5805e0fc334055f450801b5f1f3fd kamera-19.12.2.tar.xz"