maintain separate directory for script

This commit is contained in:
James Barnett 2016-04-25 18:25:31 -05:00
parent 5e92c178a3
commit 376355538e
2 changed files with 3 additions and 3 deletions

View file

@ -22,7 +22,7 @@
# PKGBUILD that installs using "./install $pkgdir". # PKGBUILD that installs using "./install $pkgdir".
INSTALL_DIR=$1 INSTALL_DIR=$1
SCRIPTS_DIR=$INSTALL_DIR/usr/share/libalpm/hooks.bin/ SCRIPTS_DIR=$INSTALL_DIR/usr/share/libalpm/hooks.bin/snap-pac
HOOKS_DIR=$INSTALL_DIR/usr/share/libalpm/hooks/ HOOKS_DIR=$INSTALL_DIR/usr/share/libalpm/hooks/
install -d $HOOKS_DIR install -d $HOOKS_DIR
install -d $SCRIPTS_DIR install -d $SCRIPTS_DIR

View file

@ -29,7 +29,7 @@ fi
declare -r cleanupalgo=${CLEANUP_ALGORITHM:-"number"} declare -r cleanupalgo=${CLEANUP_ALGORITHM:-"number"}
declare -r description=${POST_DESCRIPTION:-"$(echo $(ps -C pacman -o args=) | sed 'sX/usr/bin/pacmanXpacmanXg')"} declare -r description=${POST_DESCRIPTION:-"$(echo $(ps -C pacman -o args=) | sed 'sX/usr/bin/pacmanXpacmanXg')"}
declare -r configurations=${CONFIGS:-"root"} declare -r configurations=${CONFIGS:-"root"}
declare -r prefile_prefix="/usr/share/libalpm/hooks.bin/.snap-pac-pre" declare -r prefile_prefix="/usr/share/libalpm/hooks.bin/snap-pac/.pre"
function pre function pre
{ {
@ -53,6 +53,6 @@ function post
function clean function clean
{ {
rm /usr/share/libalpm/hooks.bin/.snap-pac-pre* rm /usr/share/libalpm/hooks.bin/snap-pac/.pre*
echo "NOTE: No post snapshot will be performed for this transaction, since you are removing the pacman hooks." echo "NOTE: No post snapshot will be performed for this transaction, since you are removing the pacman hooks."
} }