From 822a80eddb96fda331144e03254ccb3a8ad692d4 Mon Sep 17 00:00:00 2001 From: "A. Wilcox" Date: Sun, 25 Mar 2018 16:57:34 -0500 Subject: user/kig: new package --- user/kig/APKBUILD | 44 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100644 user/kig/APKBUILD (limited to 'user') diff --git a/user/kig/APKBUILD b/user/kig/APKBUILD new file mode 100644 index 000000000..fc2c4cc70 --- /dev/null +++ b/user/kig/APKBUILD @@ -0,0 +1,44 @@ +# Contributor: A. Wilcox +# Maintainer: A. Wilcox +pkgname=kig +pkgver=17.12.2 +pkgrel=0 +pkgdesc="Interactive geometry learning and exploration tool" +url=" https://www.kde.org/applications/education/kig/" +arch="all" +license="GPL-2.0+" +depends="" +makedepends="cmake extra-cmake-modules qt5-qtbase-dev qt5-qtsvg-dev kparts-dev + qt5-qtxmlpatterns-dev ki18n-dev ktexteditor-dev kiconthemes-dev + kconfigwidgets-dev karchive-dev kxmlgui-dev kcrash-dev kcoreaddons-dev" +install="" +subpackages="$pkgname-doc $pkgname-lang" +source="http://download.kde.org/stable/applications/$pkgver/src/kig-$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="3bd9496e17e77ed475e6bb6d28ccb5d2a91dd261ffa7a4b3f8a7d5603b3688ca865da7cf1480411646efcc3a24a1f83bcb5078498ed8534d048b69becc71c653 kig-17.12.2.tar.xz" -- cgit v1.2.3-70-g09d2