From 4eb5731db3a658a0cb9cd5db95e9d0c284ffec0b Mon Sep 17 00:00:00 2001 From: "A. Wilcox" Date: Sun, 25 Mar 2018 16:26:01 -0500 Subject: user/kanagram: new package --- user/kanagram/APKBUILD | 45 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 45 insertions(+) create mode 100644 user/kanagram/APKBUILD (limited to 'user') 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 +# Maintainer: A. Wilcox +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" -- cgit v1.2.3-70-g09d2