summaryrefslogtreecommitdiff
path: root/user/alkimia
diff options
context:
space:
mode:
authorA. Wilcox <AWilcox@Wilcox-Tech.com>2018-10-25 01:47:14 +0000
committerA. Wilcox <AWilcox@Wilcox-Tech.com>2018-10-25 01:47:14 +0000
commit4193a6d1adfb08a77ba2899261182f5f00b69357 (patch)
treeaea13549495901b5767924ecc45b687dac69e45c /user/alkimia
parent17a4cf173cc258c9e998108349aa8a4b23f585d6 (diff)
downloadpackages-4193a6d1adfb08a77ba2899261182f5f00b69357.tar.gz
packages-4193a6d1adfb08a77ba2899261182f5f00b69357.tar.bz2
packages-4193a6d1adfb08a77ba2899261182f5f00b69357.tar.xz
packages-4193a6d1adfb08a77ba2899261182f5f00b69357.zip
user/alkimia: new package
Diffstat (limited to 'user/alkimia')
-rw-r--r--user/alkimia/APKBUILD42
1 files changed, 42 insertions, 0 deletions
diff --git a/user/alkimia/APKBUILD b/user/alkimia/APKBUILD
new file mode 100644
index 000000000..311041c2f
--- /dev/null
+++ b/user/alkimia/APKBUILD
@@ -0,0 +1,42 @@
+# Contributor: A. Wilcox <awilfox@adelielinux.org>
+# Maintainer: A. Wilcox <awilfox@adelielinux.org>
+pkgname=alkimia
+pkgver=7.0.2
+pkgrel=0
+pkgdesc="Library for common financial functionality"
+url="https://community.kde.org/Alkimia/libalkimia"
+arch="all"
+license="LGPL-2.1+"
+depends=""
+depends_dev="gmp-dev qt5-qtbase-dev"
+makedepends="$depends_dev cmake extra-cmake-modules"
+subpackages="$pkgname-dev"
+source="https://download.kde.org/stable/alkimia/$pkgver/alkimia-$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="275ea48cd33caed9393a170efcc6053a581c1cc000862dd73a63bdb6de3e3c3ad2e492901a859e517033e1239e297a43088580553efe32f1d99a85051f5af3e4 alkimia-7.0.2.tar.xz"