aboutsummaryrefslogtreecommitdiffstats
path: root/community/xournalpp
diff options
context:
space:
mode:
Diffstat (limited to 'community/xournalpp')
-rw-r--r--community/xournalpp/APKBUILD39
1 files changed, 39 insertions, 0 deletions
diff --git a/community/xournalpp/APKBUILD b/community/xournalpp/APKBUILD
new file mode 100644
index 0000000000..ded6022a72
--- /dev/null
+++ b/community/xournalpp/APKBUILD
@@ -0,0 +1,39 @@
+# Contributor: Rasmus Thomsen <oss@cogitri.dev>
+# Maintainer: Rasmus Thomsen <oss@cogitri.dev>
+pkgname=xournalpp
+pkgver=1.0.16
+pkgrel=0
+pkgdesc="Xournal++ is a handwriting notetaking software with PDF annotation support"
+url="https://github.com/xournalpp/xournalpp"
+arch="all"
+license="GPL-2.0-or-later"
+makedepends="cmake libx11-dev libxi-dev glib-dev gtk+3.0-dev libxml2-dev
+ poppler-dev libzip-dev libsndfile-dev lua5.3-dev portaudio-dev
+ libexecinfo-dev"
+options="!check" # no tests
+subpackages="$pkgname-lang $pkgname-dbg"
+source="xournalpp-$pkgver.tar.gz::https://github.com/xournalpp/xournalpp/archive/$pkgver.tar.gz"
+
+build() {
+ if [ "$CBUILD" != "$CHOST" ]; then
+ CMAKE_CROSSOPTS="-DCMAKE_SYSTEM_NAME=Linux -DCMAKE_HOST_SYSTEM_NAME=Linux"
+ fi
+
+ # Increase stack-size to avoid crashes when using pen for input
+ env LDFLAGS="$LDFLAGS -Wl,-z,stack-size=2097152" \
+ cmake \
+ -DCMAKE_INSTALL_PREFIX=/usr \
+ -DCMAKE_INSTALL_LIBDIR=lib \
+ -DBUILD_SHARED_LIBS=True \
+ -DCMAKE_BUILD_TYPE=Release \
+ -DCMAKE_CXX_FLAGS="$CXXFLAGS" \
+ -DCMAKE_C_FLAGS="$CFLAGS" \
+ ${CMAKE_CROSSOPTS} .
+ make
+}
+
+package() {
+ make DESTDIR="$pkgdir" install
+}
+
+sha512sums="cbfd528a1aa4f0d58bf8ceeede47e6dd94258fafb7c57e11031783e8c98eb037a561ff8bdf699455908d86886ca52ceba21bad7ac372e5eb2205b0382fd2c520 xournalpp-1.0.16.tar.gz"