summaryrefslogtreecommitdiff
path: root/user
diff options
context:
space:
mode:
authorA. Wilcox <AWilcox@Wilcox-Tech.com>2018-03-25 16:26:01 -0500
committerA. Wilcox <AWilcox@Wilcox-Tech.com>2018-03-25 16:26:01 -0500
commit4eb5731db3a658a0cb9cd5db95e9d0c284ffec0b (patch)
tree642665173f77ec42f1a42928b03d989e1f94e56e /user
parent48c91d8107c69778c2d3ce72d2a6c977fea01094 (diff)
downloadpackages-4eb5731db3a658a0cb9cd5db95e9d0c284ffec0b.tar.gz
packages-4eb5731db3a658a0cb9cd5db95e9d0c284ffec0b.tar.bz2
packages-4eb5731db3a658a0cb9cd5db95e9d0c284ffec0b.tar.xz
packages-4eb5731db3a658a0cb9cd5db95e9d0c284ffec0b.zip
user/kanagram: new package
Diffstat (limited to 'user')
-rw-r--r--user/kanagram/APKBUILD45
1 files changed, 45 insertions, 0 deletions
diff --git a/user/kanagram/APKBUILD b/user/kanagram/APKBUILD
new file mode 100644
index 000000000..aef3dfa19
--- /dev/null
+++ b/user/kanagram/APKBUILD
@@ -0,0 +1,45 @@
+# Contributor: A. Wilcox <awilfox@adelielinux.org>
+# Maintainer: A. Wilcox <awilfox@adelielinux.org>
+pkgname=kanagram
+pkgver=17.12.2
+pkgrel=0
+pkgdesc="Letter order (anagram) game"
+url="https://www.kde.org/applications/education/kanagram/"
+arch="all"
+license="GPL-2.0-only"
+depends=""
+makedepends="cmake extra-cmake-modules qt5-qtbase-dev qt5-qtdeclarative-dev
+ ki18n-dev kcrash-dev sonnet-dev kconfig-dev kconfigwidgets-dev kio-dev
+ kcoreaddons-dev kdeclarative-dev kdoctools-dev knewstuff-dev
+ libkeduvocdocument-dev"
+install=""
+subpackages="$pkgname-doc $pkgname-lang"
+source="http://download.kde.org/stable/applications/$pkgver/src/kanagram-$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="3de3df86c5f2b7c4a1590e9c3cb16509b5ef4f36e63981e1842c30e8034d34cac5626eb8ac00d3c8137a90975f64c14bc69dc6bf53551faf94d7e7991d3e5fe4 kanagram-17.12.2.tar.xz"