mirror of
https://github.com/Ponce/slackbuilds
synced 2024-11-25 10:03:03 +01:00
7947934a53
Moved from Libraries.
12 lines
467 B
Bash
12 lines
467 B
Bash
postinstall scriptlet (using /bin/sh):
|
|
rm -f /usr/share/java/ivy.jar
|
|
ln -s /usr/share/java/ivy-1.4.1.jar /usr/share/java/ivy.jar
|
|
postuninstall scriptlet (using /bin/sh):
|
|
if [ "$1" = "0" ]; then
|
|
# Remove the old link
|
|
rm -f /usr/share/java/ivy.jar
|
|
|
|
# Put back a new link. It's OK if this fails, that just means there
|
|
# is no other version of the package installed
|
|
ln -fs `ls -tr /usr/share/java/ivy-* 2>/dev/null|tail -n 1` /usr/share/java/ivy.jar || true
|
|
fi
|