blob: 39fa2600143a790a9178aa01e956e4918f3ba815 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
|
# Contributor: Rasmus Thomsen <oss@cogitri.dev>
# Maintainer: Rasmus Thomsen <oss@cogitri.dev>
pkgname=xournalpp
pkgver=1.0.14
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="3e747660b9865c01b407bc1b0f97700710785c51dd0ee37b5f1f1b2b18a7b4432a51c66f37c8030a38f6bcc5fb6692feb2b684365856f5515d7c92de506fc441 xournalpp-1.0.14.tar.gz"
|