summaryrefslogtreecommitdiff
path: root/user/kturtle
diff options
context:
space:
mode:
authorA. Wilcox <AWilcox@Wilcox-Tech.com>2018-03-25 18:31:37 -0500
committerA. Wilcox <AWilcox@Wilcox-Tech.com>2018-03-25 18:31:37 -0500
commit681bc6659bec091f76d56b740ddbbcc79e674410 (patch)
treeec9541b5fed48df0b317baa3797b7bd99718cca3 /user/kturtle
parent54fed612998232baacb02a438e1bba7321d3acf6 (diff)
downloadpackages-681bc6659bec091f76d56b740ddbbcc79e674410.tar.gz
packages-681bc6659bec091f76d56b740ddbbcc79e674410.tar.bz2
packages-681bc6659bec091f76d56b740ddbbcc79e674410.tar.xz
packages-681bc6659bec091f76d56b740ddbbcc79e674410.zip
user/kturtle: new package
Diffstat (limited to 'user/kturtle')
-rw-r--r--user/kturtle/APKBUILD44
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"