aboutsummaryrefslogtreecommitdiffstats
path: root/community/libqalculate/APKBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'community/libqalculate/APKBUILD')
-rw-r--r--community/libqalculate/APKBUILD63
1 files changed, 63 insertions, 0 deletions
diff --git a/community/libqalculate/APKBUILD b/community/libqalculate/APKBUILD
new file mode 100644
index 00000000000..3f69101ab22
--- /dev/null
+++ b/community/libqalculate/APKBUILD
@@ -0,0 +1,63 @@
+# Contributor: Sodface <sod@sodface.com>
+# Maintainer: lonjil <alpine@lonjil.xyz>
+pkgname=libqalculate
+# the pkgver must be kept in sync with: qalculate-gtk, qalculate-qt
+pkgver=5.0.0
+pkgrel=0
+pkgdesc="Library implementing a multi-purpose desktop calculator"
+url="https://qalculate.github.io/"
+license="GPL-2.0-or-later"
+arch="all"
+makedepends="
+ curl-dev
+ diffutils
+ gettext-dev
+ gmp-dev
+ gnu-libiconv-dev
+ icu-dev
+ intltool
+ libxml2-dev
+ mpfr-dev
+ readline-dev
+ "
+subpackages="
+ $pkgname-dev
+ $pkgname-lang
+ qalc
+ qalc-doc
+ "
+source="https://github.com/Qalculate/libqalculate/releases/download/v$pkgver/libqalculate-$pkgver.tar.gz
+ libqalculate.pc.in.patch
+ "
+options="!check" # no test suite
+
+build() {
+ # Compile with LTO to reduce binary size.
+ export CXXFLAGS="$CXXFLAGS -flto=auto"
+
+ ./configure \
+ --build=$CBUILD \
+ --host=$CHOST \
+ --prefix=/usr \
+ --mandir=/usr/share/man
+ make
+}
+
+package() {
+ make DESTDIR="$pkgdir" install
+}
+
+qalc() {
+ pkgdesc="Powerful and easy to use command line calculator"
+ amove usr/bin/qalc
+}
+
+doc() {
+ default_doc
+ pkgdesc="Powerful and easy to use command line calculator (documentation)"
+}
+
+sha512sums="
+d3467e79e1454a76ee0c4d8795241c105d42580f95321e24b0657d99535ed8827809cc7ec0474c9e75cd668158aa84a500e5bd3a92dd0f4a3d1e4fc91811c399 libqalculate-5.0.0.tar.gz
+a44bb2d18b6ac9306587cfaeec21955aa526faa4abe5f639ab5912227331eb052ec900626619ff939c9f93fb0e7a25d0af134b645bcde5bc694f78af8f4b0af5 libqalculate.pc.in.patch
+"