diff options
Diffstat (limited to 'user/kturtle')
-rw-r--r-- | user/kturtle/APKBUILD | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/user/kturtle/APKBUILD b/user/kturtle/APKBUILD new file mode 100644 index 000000000..10bbaddc3 --- /dev/null +++ b/user/kturtle/APKBUILD @@ -0,0 +1,44 @@ +# Contributor: A. Wilcox <awilfox@adelielinux.org> +# Maintainer: A. Wilcox <awilfox@adelielinux.org> +pkgname=kturtle +pkgver=17.12.2 +pkgrel=0 +pkgdesc="Educational programming environment" +url="https://www.kde.org/applications/education/kturtle/" +arch="all" +license="GPL-2.0-only" +depends="" +makedepends="cmake extra-cmake-modules qt5-qtbase-dev qt5-qtsvg-dev kcrash-dev + kio-dev knewstuff-dev kdoctools-dev ktextwidgets-dev ki18n-dev + kcoreaddons-dev" +install="" +subpackages="$pkgname-doc $pkgname-lang" +source="http://download.kde.org/stable/applications/$pkgver/src/kturtle-$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="20050ae4349a518940c9fb4e2646bc671a8c63979c19b2176b1f15e7b476e2d3bb2ecdcdb7e1ee6eea95e1b1e847f9e87ec7a87f3457edac110e0466549b6d5e kturtle-17.12.2.tar.xz" |