xournalpp-git: remove crazy stuff
This commit is contained in:
parent
b0ce23ee53
commit
72bf7a66e7
@ -28,14 +28,9 @@ prepare() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
build() {
|
build() {
|
||||||
if [ -z "$XDG_CONFIG_HOME" ]; then
|
|
||||||
configdir=".config"
|
|
||||||
else
|
|
||||||
configdir="$(realpath --relative-to="$HOME" "$XDG_CONFIG_HOME")"
|
|
||||||
fi
|
|
||||||
cd "${srcdir}/${_pkgname}/build"
|
cd "${srcdir}/${_pkgname}/build"
|
||||||
|
|
||||||
cmake -DCMAKE_INSTALL_PREFIX="/usr/" -DDEV_CONFIG_DIR="$configdir/xournalpp" -DENABLE_CPPUNIT=ON ..
|
cmake -DCMAKE_INSTALL_PREFIX="/usr/" -DENABLE_CPPUNIT=ON ..
|
||||||
cmake --build . --target pot
|
cmake --build . --target pot
|
||||||
cmake --build . --target translations
|
cmake --build . --target translations
|
||||||
cmake --build .
|
cmake --build .
|
||||||
|
@ -3,16 +3,7 @@ post_install() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
post_upgrade() {
|
post_upgrade() {
|
||||||
configs=$(find /home/ /root/ -maxdepth 2 -name ".xournalpp" 2> /dev/null)
|
:
|
||||||
if ! [ -z "$configs" ]; then
|
|
||||||
cat << EOF
|
|
||||||
|
|
||||||
WARNING: Default config folder moved from \$HOME/.xournalpp to \$HOME/\$XDG_CONFIG_HOME/xournalpp (default .config)
|
|
||||||
Found following config paths:
|
|
||||||
EOF
|
|
||||||
echo "$configs"
|
|
||||||
echo
|
|
||||||
fi
|
|
||||||
}
|
}
|
||||||
|
|
||||||
post_remove() {
|
post_remove() {
|
||||||
|
Loading…
Reference in New Issue
Block a user