diff options
author | A. Wilcox <AWilcox@Wilcox-Tech.com> | 2018-03-25 17:40:00 -0500 |
---|---|---|
committer | A. Wilcox <AWilcox@Wilcox-Tech.com> | 2018-03-25 17:40:00 -0500 |
commit | de351b5245aeacc802eb808c07afc8c5ea781cf4 (patch) | |
tree | d59b594d5de2799efcf15bc9a83e00329fb85f6e /user | |
parent | e94fa8ad59c46c317cfbad6c5bd983d6592f480c (diff) | |
download | packages-de351b5245aeacc802eb808c07afc8c5ea781cf4.tar.gz packages-de351b5245aeacc802eb808c07afc8c5ea781cf4.tar.bz2 packages-de351b5245aeacc802eb808c07afc8c5ea781cf4.tar.xz packages-de351b5245aeacc802eb808c07afc8c5ea781cf4.zip |
user/klettres: new package
Diffstat (limited to 'user')
-rw-r--r-- | user/klettres/APKBUILD | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/user/klettres/APKBUILD b/user/klettres/APKBUILD new file mode 100644 index 000000000..b0f04bfb4 --- /dev/null +++ b/user/klettres/APKBUILD @@ -0,0 +1,44 @@ +# Contributor: A. Wilcox <awilfox@adelielinux.org> +# Maintainer: A. Wilcox <awilfox@adelielinux.org> +pkgname=klettres +pkgver=17.12.2 +pkgrel=0 +pkgdesc="Learn alphabets for multiple languages" +url="https://www.kde.org/applications/education/klettres/" +arch="all" +license="GPL-2.0-only" +depends="" +depends_dev="" +makedepends="$depends_dev" +install="" +subpackages="$pkgname-dev $pkgname-doc" +source="http://download.kde.org/stable/applications/$pkgver/src/klettres-$pkgver.tar.xz" +builddir="$srcdir/klettres-$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="aac1bba83a093db707185ef77d514ac3f6d909065045b6beaaeb277fd03cf9c882ecd1a3ff35b7256e61517effeac302792e8a6e32a5de4c4cd3082aa257609e klettres-17.12.2.tar.xz" |