cruxports/xournalpp/Pkgfile

29 lines
933 B
Plaintext
Raw Normal View History

2022-02-05 20:39:19 +00:00
# Description: notetaking and PDF annotation software
# URL: https://github.com/xournalpp/xournalpp
# Maintainer: John McQuah, jmcquah at disroot dot org
2023-12-11 03:09:16 +00:00
# Depends on: gtksourceview libsndfile libzip lua poppler portaudio-cpp
# Optional: gpgme texlive
2022-02-05 20:39:19 +00:00
name=xournalpp
2023-11-25 00:52:36 +00:00
version=1.2.2
2022-02-05 20:39:19 +00:00
release=1
source=(https://github.com/$name/$name/archive/v$version/$name-$version.tar.gz)
2022-02-05 20:39:19 +00:00
build() {
2023-12-11 03:09:16 +00:00
# fail the build if dependencies are not met
[ -e /usr/include/poppler/glib/poppler.h ] || \
{ echo "Rebuild poppler with glib present; otherwise xournalpp will not work."; exit 1; }
cmake -S $name-$version -B build -G Ninja \
-DCMAKE_INSTALL_PREFIX="/usr" \
2022-12-23 13:47:33 +00:00
-DCMAKE_C_FLAGS="$CFLAGS" \
-DCMAKE_CXX_FLAGS="$CXXFLAGS" \
-DCMAKE_BUILD_TYPE=Release
ninja -C build -j ${JOBS-1}
DESTDIR=$PKG ninja -C build install
2022-02-05 20:39:19 +00:00
rm -rf $PKG/usr/share/locale
find $PKG -name README.md -delete
2022-02-05 20:39:19 +00:00
}