Avoid home install for vala and valabind r2pm pkgs

This commit is contained in:
pancake 2016-05-24 03:38:29 +02:00
parent 730fde95b4
commit 9130c78da9
2 changed files with 13 additions and 3 deletions

View File

@ -4,7 +4,12 @@ R2PM_GIT "https://github.com/radare/radare2"
R2PM_DESC "[syspkg] Vala compiler from git"
R2PM_INSTALL() {
sys/vala.sh "${R2PM_PREFIX}"
if [ $GLOBAL = 1 ]; then
sys/vala.sh "${R2PM_PREFIX}"
else
echo "Sorry. This package cannot be installed at home"
exit 1
fi
}
R2PM_UNINSTALL() {

View File

@ -1,10 +1,15 @@
R2PM_BEGIN
R2PM_GIT "https://github.com/radare/radare2"
R2PM_DESC "[syspkg] Valabind tool"
R2PM_DESC "[syspkg] Valabind tool to generate bindings from vapi files"
R2PM_INSTALL() {
sys/valabind.sh
if [ $GLOBAL = 1 ]; then
sys/valabind.sh "${R2PM_PREFIX}"
else
echo "Sorry. This package cannot be installed at home"
exit 1
fi
}
R2PM_UNINSTALL() {