diff options
-rw-r--r-- | user/picmi/APKBUILD | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/user/picmi/APKBUILD b/user/picmi/APKBUILD new file mode 100644 index 000000000..951b92ec4 --- /dev/null +++ b/user/picmi/APKBUILD @@ -0,0 +1,42 @@ +# Contributor: A. Wilcox <awilfox@adelielinux.org> +# Maintainer: A. Wilcox <awilfox@adelielinux.org> +pkgname=picmi +pkgver=20.04.3 +pkgrel=0 +pkgdesc="Single-player logic/pattern game" +url="https://kde.org/applications/games/org.kde.picmi" +arch="all" +license="GPL-2.0+" +depends="" +makedepends="qt5-qtbase-dev qt5-qtsvg-dev cmake extra-cmake-modules + qt5-qtdeclarative-dev kcoreaddons-dev kcrash-dev kdbusaddons-dev + kdeclarative-dev kdoctools-dev ki18n-dev kio-dev knewstuff-dev + kxmlgui-dev libkdegames-dev" +subpackages="$pkgname-doc $pkgname-lang" +source="https://download.kde.org/stable/release-service/$pkgver/src/picmi-$pkgver.tar.xz" + +build() { + 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} \ + -Bbuild . + make -C build +} + +check() { + CTEST_OUTPUT_ON_FAILURE=TRUE make -C build test +} + +package() { + make DESTDIR="$pkgdir" -C build install +} + +sha512sums="d64b73880fcee4ec7f98d70787e7418da9df30eb26f3f136da8773d75589a44e0508c4e5a26d33d7e59e8b56bf2502a44553d0872ce5797b01dcbb03049e7def picmi-20.04.3.tar.xz" |