cruxports/xournalpp/Pkgfile

28 lines
922 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
2022-04-26 11:51:12 +00:00
# Depends on: adwaita-icon-theme cppunit libsndfile libzip lua53 poppler-glib portaudio
2022-02-05 20:39:19 +00:00
# Nice to have: libungif texlive
name=xournalpp
2022-04-16 12:43:57 +00:00
version=1.1.1
2022-02-05 20:39:19 +00:00
release=1
2022-04-16 12:43:57 +00:00
source=(https://github.com/$name/$name/archive/refs/tags/v${version}.tar.gz)
renames=($name-$version.tar.gz)
2022-02-05 20:39:19 +00:00
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 14:46:46 +00:00
find $PKG -name README.md -exec rm -f '{}' +
2022-02-05 20:39:19 +00:00
}