summaryrefslogtreecommitdiff
path: root/user/kamera
diff options
context:
space:
mode:
authorA. Wilcox <AWilcox@Wilcox-Tech.com>2020-03-10 02:44:32 +0000
committerA. Wilcox <AWilcox@Wilcox-Tech.com>2020-03-10 02:44:32 +0000
commite8e00a3795ef76efadfdd9cf171f037d6f9ebd7e (patch)
treec437a651f89c166e76d99aa8ac9905e7f001e30a /user/kamera
parentb2b91cc7b341c21dd2754f766e3688d1cd8683cd (diff)
downloadpackages-e8e00a3795ef76efadfdd9cf171f037d6f9ebd7e.tar.gz
packages-e8e00a3795ef76efadfdd9cf171f037d6f9ebd7e.tar.bz2
packages-e8e00a3795ef76efadfdd9cf171f037d6f9ebd7e.tar.xz
packages-e8e00a3795ef76efadfdd9cf171f037d6f9ebd7e.zip
user/kamera: New package
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"