cruxports/xournalpp/Pkgfile

28 lines
922 B
Plaintext

# Description: notetaking and PDF annotation software
# URL: https://github.com/xournalpp/xournalpp
# Maintainer: John McQuah, jmcquah at disroot dot org
# Depends on: adwaita-icon-theme cppunit libsndfile libzip lua53 poppler-glib portaudio
# Nice to have: libungif texlive
name=xournalpp
version=1.1.1
release=1
source=(https://github.com/$name/$name/archive/refs/tags/v${version}.tar.gz)
renames=($name-$version.tar.gz)
build() {
cd $name-$version
mkdir build && cd build
if [ -z "$XDG_CONFIG_HOME" ]; then
configdir=".config"
else
configdir="$(realpath --relative-to="$HOME" "$XDG_CONFIG_HOME")"
fi
cmake -DCMAKE_INSTALL_PREFIX="/usr/" -DDEV_CONFIG_DIR="$configdir/xournalpp" \
-DENABLE_CPPUNIT=ON -DCMAKE_BUILD_TYPE=Release ..
cmake --build .
make DESTDIR=$PKG install
rm -rf $PKG/usr/share/locale
find $PKG -name README.md -exec rm -f '{}' +
}