summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorA. Wilcox <AWilcox@Wilcox-Tech.com>2018-03-25 16:05:53 -0500
committerA. Wilcox <AWilcox@Wilcox-Tech.com>2018-03-25 16:05:53 -0500
commitb96ef0fb5f90ca8e4ef60830c0aefc36f41e0b04 (patch)
tree4e96f6d33fd7e509fa453c16d8d0af8944b1fd4f
parent3d6b082a46d6b0291cd05a63f396f1e4096139af (diff)
downloadpackages-b96ef0fb5f90ca8e4ef60830c0aefc36f41e0b04.tar.gz
packages-b96ef0fb5f90ca8e4ef60830c0aefc36f41e0b04.tar.bz2
packages-b96ef0fb5f90ca8e4ef60830c0aefc36f41e0b04.tar.xz
packages-b96ef0fb5f90ca8e4ef60830c0aefc36f41e0b04.zip
user/analitza: new package
-rw-r--r--user/analitza/APKBUILD43
1 files changed, 43 insertions, 0 deletions
diff --git a/user/analitza/APKBUILD b/user/analitza/APKBUILD
new file mode 100644
index 000000000..2c562f252
--- /dev/null
+++ b/user/analitza/APKBUILD
@@ -0,0 +1,43 @@
+# Contributor: A. Wilcox <awilfox@adelielinux.org>
+# Maintainer: A. Wilcox <awilfox@adelielinux.org>
+pkgname=analitza
+pkgver=17.12.2
+pkgrel=0
+pkgdesc="Mathematical object library"
+url="https://api.kde.org/4.x-api/kdeedu-apidocs/analitza/html/index.html"
+arch="all"
+license="LGPL-2.0+"
+depends=""
+depends_dev="qt5-qtbase-dev qt5-qtsvg-dev qt5-qtdeclarative-dev eigen-dev"
+makedepends="$depends_dev cmake extra-cmake-modules qt5-qttools-dev"
+install=""
+subpackages="$pkgname-dev $pkgname-lang"
+source="http://download.kde.org/stable/applications/$pkgver/src/analitza-$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 -E '(export|curve|plots|surface)'
+}
+
+package() {
+ cd "$builddir"
+ make DESTDIR="$pkgdir" install
+}
+
+sha512sums="e326d397db3193492258f156cd71f63e4544abd9724b58769a1593ff57242b18de09291a433ea37658015bd57f75e430ed95bdf99d3863fccfc4b546a9686933 analitza-17.12.2.tar.xz"