summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKiyoshi Aman <kiyoshi.aman+apkfission@gmail.com>2018-07-31 15:02:06 -0500
committerKiyoshi Aman <kiyoshi.aman+apkfission@gmail.com>2018-07-31 15:02:06 -0500
commit9b7fbf65ef40bd8a51bb247e3ba447d6bb211969 (patch)
tree4cec2b5479800c4eb25c1ecde111e2ec4a495331
parent327f8156326f7c6556f5c87e40b32639f0444f4a (diff)
downloadpackages-9b7fbf65ef40bd8a51bb247e3ba447d6bb211969.tar.gz
packages-9b7fbf65ef40bd8a51bb247e3ba447d6bb211969.tar.bz2
packages-9b7fbf65ef40bd8a51bb247e3ba447d6bb211969.tar.xz
packages-9b7fbf65ef40bd8a51bb247e3ba447d6bb211969.zip
user/qtkeychain: new package
-rw-r--r--user/qtkeychain/APKBUILD48
1 files changed, 48 insertions, 0 deletions
diff --git a/user/qtkeychain/APKBUILD b/user/qtkeychain/APKBUILD
new file mode 100644
index 000000000..681e5eb53
--- /dev/null
+++ b/user/qtkeychain/APKBUILD
@@ -0,0 +1,48 @@
+# Contributor: Kiyoshi Aman <kiyoshi.aman+adelie@gmail.com>
+# Maintainer: Kiyoshi Aman <kiyoshi.aman+adelie@gmail.com>
+pkgname=qtkeychain
+pkgver=0.9.0
+pkgrel=0
+pkgdesc="Platform-independent Qt-based API for storing passwords securely"
+url="https://github.com/frankosterfeld/qtkeychain"
+arch="all"
+options="!check" # no tests
+license="BSD-3-Clause"
+depends_dev=""
+makedepends="cmake extra-cmake-modules qt5-qtbase-dev qt5-qttools-dev"
+install=""
+subpackages="$pkgname-dev"
+source="qtkeychain-$pkgver.tar.gz::https://github.com/frankosterfeld/qtkeychain/archive/v$pkgver.tar.gz"
+sha512sums="d8e7895169e9746c234a156e00edb939926d14da1a5eadab7cb1e67790958973bfd11c9c04c6fa5cf776aafbd0af40dcd50c683f1c80bef60d47d1465bb350df qtkeychain-0.9.0.tar.gz"
+
+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
+}
+
+check() {
+ cd "$builddir"
+ make check
+}
+
+package() {
+ cd "$builddir"
+ make DESTDIR="$pkgdir" install
+}
+