summaryrefslogtreecommitdiff
path: root/user
diff options
context:
space:
mode:
authorA. Wilcox <AWilcox@Wilcox-Tech.com>2017-10-13 22:02:23 -0500
committerA. Wilcox <AWilcox@Wilcox-Tech.com>2017-10-13 22:02:23 -0500
commit29756ebf19a862883fb9b136d8c73e6309b8cea7 (patch)
tree9ad50359af2f14acfb6715f54ce6bdebd461dfd2 /user
parent205ec2443ac9f361cbe850eff5baefc60aba7df7 (diff)
downloadpackages-29756ebf19a862883fb9b136d8c73e6309b8cea7.tar.gz
packages-29756ebf19a862883fb9b136d8c73e6309b8cea7.tar.bz2
packages-29756ebf19a862883fb9b136d8c73e6309b8cea7.tar.xz
packages-29756ebf19a862883fb9b136d8c73e6309b8cea7.zip
user/kblocks: new package
Diffstat (limited to 'user')
-rw-r--r--user/kblocks/APKBUILD45
1 files changed, 45 insertions, 0 deletions
diff --git a/user/kblocks/APKBUILD b/user/kblocks/APKBUILD
new file mode 100644
index 000000000..9877cc609
--- /dev/null
+++ b/user/kblocks/APKBUILD
@@ -0,0 +1,45 @@
+# Contributor: A. Wilcox <awilfox@adelielinux.org>
+# Maintainer: A. Wilcox <awilfox@adelielinux.org>
+pkgname=kblocks
+pkgver=17.08.1
+pkgrel=0
+pkgdesc="Falling blocks game"
+url="https://www.kde.org/applications/games/kblocks/"
+arch="all"
+license="GPL-2.0"
+depends=""
+makedepends="cmake extra-cmake-modules qt5-qtbase-dev qt5-qtsvg-dev kconfig-dev
+ kconfigwidgets-dev kcoreaddons-dev kcrash-dev kdoctools-dev ki18n-dev
+ kdbusaddons-dev kwidgetsaddons-dev kxmlgui-dev libkdegames-dev"
+install=""
+subpackages="$pkgname-doc $pkgname-lang"
+source="http://download.kde.org/stable/applications/$pkgver/src/kblocks-$pkgver.tar.xz"
+builddir="$srcdir/kblocks-$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="04ab80d1742bc2ad15210bf0eed3bc3f85b05e8a6aadc3a5abe5443c02c8f2bb3c3e8afd580da9f5931cd555fb94b1a5b8924f3ef65a099593d723c12e7d4978 kblocks-17.08.1.tar.xz"