cruxports/xournalpp/Pkgfile

27 lines
905 B
Plaintext
Raw Normal View History

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
# Depends on: gtk3 poppler-glib libxml2 portaudio libsndfile lua53 libzip cppunit adwaita-icon-theme
# Nice to have: libungif texlive
name=xournalpp
version=1.1.0
release=1
source=(https://github.com/$name/$name/archive/$version/$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
2022-02-12 09:46:46 -05:00
find $PKG -name README.md -exec rm -f '{}' +
2022-02-05 15:39:19 -05:00
}