2022-02-05 15:39:19 -05:00
|
|
|
# Description: notetaking and PDF annotation software
|
|
|
|
# URL: https://github.com/xournalpp/xournalpp
|
|
|
|
# Maintainer: John McQuah, jmcquah at disroot dot org
|
2024-08-30 09:12:32 -04:00
|
|
|
# Depends on: libsndfile libzip lua poppler portaudio-cpp
|
2023-08-19 15:44:56 -04:00
|
|
|
# Optional: gpgme texlive
|
2022-02-05 15:39:19 -05:00
|
|
|
|
|
|
|
name=xournalpp
|
2024-08-30 09:12:32 -04:00
|
|
|
version=1.2.3
|
2022-02-05 15:39:19 -05:00
|
|
|
release=1
|
2024-08-30 09:12:32 -04:00
|
|
|
source=(https://github.com/$name/$name/archive/v$version/$name-$version.tar.gz
|
|
|
|
# and a patch from Alpine Linux to accommodate MUSL builds
|
|
|
|
no-execinfo.patch)
|
2022-02-05 15:39:19 -05:00
|
|
|
|
|
|
|
build() {
|
2023-12-10 22:09:16 -05: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; }
|
|
|
|
|
2024-08-30 09:12:32 -04:00
|
|
|
prt-get isinst glibc || patch -Np1 -d $name-$version < no-execinfo.patch
|
|
|
|
|
2023-08-19 15:44:56 -04:00
|
|
|
cmake -S $name-$version -B build -G Ninja \
|
|
|
|
-DCMAKE_INSTALL_PREFIX="/usr" \
|
2022-12-23 08:47:33 -05:00
|
|
|
-DCMAKE_C_FLAGS="$CFLAGS" \
|
|
|
|
-DCMAKE_CXX_FLAGS="$CXXFLAGS" \
|
2023-08-19 15:44:56 -04:00
|
|
|
-DCMAKE_BUILD_TYPE=Release
|
2023-02-16 11:30:50 -05:00
|
|
|
|
2023-08-19 15:44:56 -04:00
|
|
|
ninja -C build -j ${JOBS-1}
|
|
|
|
DESTDIR=$PKG ninja -C build install
|
2023-02-16 11:30:50 -05:00
|
|
|
|
2022-02-05 15:39:19 -05:00
|
|
|
rm -rf $PKG/usr/share/locale
|
2023-02-16 11:30:50 -05:00
|
|
|
find $PKG -name README.md -delete
|
2022-02-05 15:39:19 -05:00
|
|
|
}
|