diff options
author | A. Wilcox <AWilcox@Wilcox-Tech.com> | 2017-10-14 01:15:06 -0500 |
---|---|---|
committer | A. Wilcox <AWilcox@Wilcox-Tech.com> | 2017-10-14 01:15:06 -0500 |
commit | 30e45adf804c68730b4b2f87c80a20aea5ede8e0 (patch) | |
tree | bf342b10a0e61d4350602e38fe69673b67dfc45b /user/klines | |
parent | 6de992b65681f1afe7e0668b4a01d09220f574c6 (diff) | |
download | packages-30e45adf804c68730b4b2f87c80a20aea5ede8e0.tar.gz packages-30e45adf804c68730b4b2f87c80a20aea5ede8e0.tar.bz2 packages-30e45adf804c68730b4b2f87c80a20aea5ede8e0.tar.xz packages-30e45adf804c68730b4b2f87c80a20aea5ede8e0.zip |
user/klines: new package
Diffstat (limited to 'user/klines')
-rw-r--r-- | user/klines/APKBUILD | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/user/klines/APKBUILD b/user/klines/APKBUILD new file mode 100644 index 000000000..f16549099 --- /dev/null +++ b/user/klines/APKBUILD @@ -0,0 +1,45 @@ +# Contributor: A. Wilcox <awilfox@adelielinux.org> +# Maintainer: A. Wilcox <awilfox@adelielinux.org> +pkgname=klines +pkgver=17.08.1 +pkgrel=0 +pkgdesc="Simple yet addictive single-player game" +url="https://games.kde.org/game.php?game=klines" +arch="all" +license="GPL-2.0" +depends="" +makedepends="cmake extra-cmake-modules qt5-qtbase-dev kcoreaddons-dev + kconfig-dev kcrash-dev kwidgetsaddons-dev kdbusaddons-dev ki18n-dev + kconfigwidgets-dev kxmlgui-dev kdoctools-dev libkdegames-dev" +install="" +subpackages="$pkgname-doc $pkgname-lang" +source="http://download.kde.org/stable/applications/$pkgver/src/klines-$pkgver.tar.xz" +builddir="$srcdir/klines-$pkgver" + +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="e5673a4ed74b34dc6fa7c3650a771ca6e5f506b639b8957131518325b996617978622cf6bf18e6522a25e4c30aff47daa390b394f78a4d61e846430c5ca27d06 klines-17.08.1.tar.xz" |