aboutsummaryrefslogtreecommitdiffstats
path: root/testing/xournalpp/APKBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'testing/xournalpp/APKBUILD')
-rw-r--r--testing/xournalpp/APKBUILD41
1 files changed, 41 insertions, 0 deletions
diff --git a/testing/xournalpp/APKBUILD b/testing/xournalpp/APKBUILD
new file mode 100644
index 0000000000..eb5aae0519
--- /dev/null
+++ b/testing/xournalpp/APKBUILD
@@ -0,0 +1,41 @@
+# Contributor: Rasmus Thomsen <oss@cogitri.dev>
+# Maintainer: Rasmus Thomsen <oss@cogitri.dev>
+pkgname=xournalpp
+pkgver=1.0.12
+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
+ link-execinfo.patch"
+
+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="6831da57c715bf70676fdd515f55475c72fb7b2e418157c2d110383bd7a5f37db1961b1b87b2af3a62f0d46f99310d499c113f3480025c6fa47ecec8a3153112 xournalpp-1.0.12.tar.gz
+7c5dbf566bc1c04b705bff07b406a2403e1ab79af774390247edc75a8fa23049e05a647b609fe3e08d17869ebe6848f3638cf9e33d6bda9e43cbb14a0e02f478 link-execinfo.patch"