summaryrefslogtreecommitdiff
path: root/user
diff options
context:
space:
mode:
authorA. Wilcox <AWilcox@Wilcox-Tech.com>2018-03-25 16:36:10 -0500
committerA. Wilcox <AWilcox@Wilcox-Tech.com>2018-03-25 16:36:10 -0500
commit203f28aa69ccb53d52f1bb1e2baef67b6d46a7fd (patch)
tree7f5c2f108cb19ac7296bc0d1140208b17aa2cfa5 /user
parentbd24ae9f72aef48db162d4c3d50bcb847e8102da (diff)
downloadpackages-203f28aa69ccb53d52f1bb1e2baef67b6d46a7fd.tar.gz
packages-203f28aa69ccb53d52f1bb1e2baef67b6d46a7fd.tar.bz2
packages-203f28aa69ccb53d52f1bb1e2baef67b6d46a7fd.tar.xz
packages-203f28aa69ccb53d52f1bb1e2baef67b6d46a7fd.zip
user/khangman: new package
Diffstat (limited to 'user')
-rw-r--r--user/khangman/APKBUILD45
1 files changed, 45 insertions, 0 deletions
diff --git a/user/khangman/APKBUILD b/user/khangman/APKBUILD
new file mode 100644
index 000000000..08f129dae
--- /dev/null
+++ b/user/khangman/APKBUILD
@@ -0,0 +1,45 @@
+# Contributor: A. Wilcox <awilfox@adelielinux.org>
+# Maintainer: A. Wilcox <awilfox@adelielinux.org>
+pkgname=khangman
+pkgver=17.12.2
+pkgrel=0
+pkgdesc="Hangman word game"
+url="https://www.kde.org/applications/education/khangman/"
+arch="all"
+license="GPL-2.0-only"
+depends=""
+makedepends="cmake extra-cmake-modules qt5-qtbase-dev qt5-qtdeclarative-dev
+ qt5-qtsvg-dev ki18n-dev kcrash-dev kcompletion-dev kconfig-dev kio-dev
+ kcoreaddons-dev kconfigwidgets-dev kdeclarative-dev kdoctools-dev
+ knewstuff-dev knotifications-dev kxmlgui-dev libkeduvocdocument-dev"
+install=""
+subpackages="$pkgname-doc $pkgname-lang"
+source="http://download.kde.org/stable/applications/$pkgver/src/khangman-$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="fbaa1ef829f53966ab754d9d2ec2efc184505421c08f2f86cacdd2e05088deb9fead44db9b90556b9b5006dc0630f72ddd49b8b0214b179ffac501f204621000 khangman-17.12.2.tar.xz"