summaryrefslogtreecommitdiff
path: root/user/kalzium/APKBUILD
diff options
context:
space:
mode:
authorA. Wilcox <AWilcox@Wilcox-Tech.com>2018-03-25 16:16:53 -0500
committerA. Wilcox <AWilcox@Wilcox-Tech.com>2018-03-25 16:16:53 -0500
commit73825cd1a0490be197139dd2708212fd94dd4b39 (patch)
treecc3dc60edb5bb54ccd59102b9d86178a94b0260b /user/kalzium/APKBUILD
parentb3c86a8a49bbdae7490135f712c7f46669af2802 (diff)
downloadpackages-73825cd1a0490be197139dd2708212fd94dd4b39.tar.gz
packages-73825cd1a0490be197139dd2708212fd94dd4b39.tar.bz2
packages-73825cd1a0490be197139dd2708212fd94dd4b39.tar.xz
packages-73825cd1a0490be197139dd2708212fd94dd4b39.zip
user/kalzium: new package
Diffstat (limited to 'user/kalzium/APKBUILD')
-rw-r--r--user/kalzium/APKBUILD47
1 files changed, 47 insertions, 0 deletions
diff --git a/user/kalzium/APKBUILD b/user/kalzium/APKBUILD
new file mode 100644
index 000000000..032a5269d
--- /dev/null
+++ b/user/kalzium/APKBUILD
@@ -0,0 +1,47 @@
+# Contributor: A. Wilcox <awilfox@adelielinux.org>
+# Maintainer: A. Wilcox <awilfox@adelielinux.org>
+pkgname=kalzium
+pkgver=17.12.2
+pkgrel=0
+pkgdesc="Periodic table of elements (PSE) with calculators"
+url="https://www.kde.org/applications/education/kalzium/"
+arch="all"
+license="GPL-2.0-only"
+depends=""
+makedepends="cmake extra-cmake-modules qt5-qtbase-dev qt5-qtscript-dev
+ eigen-dev qt5-qtdeclarative-dev qt5-qtsvg-dev karchive-dev kconfig-dev
+ kcoreaddons-dev kdoctools-dev ki18n-dev kdelibs4support-dev khtml-dev
+ kparts-dev kplotting-dev solid-dev kunitconversion-dev
+ kwidgetsaddons-dev"
+install=""
+subpackages="$pkgname-doc $pkgname-lang"
+source="http://download.kde.org/stable/applications/$pkgver/src/kalzium-$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" \
+ -DEIGEN3_INCLUDE_DIR=/usr/include/eigen3 \
+ ${CMAKE_CROSSOPTS}
+ make
+}
+
+check() {
+ cd "$builddir"
+ CTEST_OUTPUT_ON_FAILURE=TRUE ctest
+}
+
+package() {
+ cd "$builddir"
+ make DESTDIR="$pkgdir" install
+}
+
+sha512sums="2f2c4ed44cd0302b63819a4b6ec0ec15038aae74f825b30ae84ccb15eb593380b77a6de84a11d94dd20ae9e66225ad977e8d127b3c120bcaa02950ffe62737c7 kalzium-17.12.2.tar.xz"