Change installation location

This commit is contained in:
jD91mZM2 2018-04-23 11:16:21 +02:00
parent 0cdf0867d9
commit 6c3bbeb4d2
No known key found for this signature in database
GPG Key ID: 3055D54729A72666

View File

@ -27,7 +27,13 @@ function recipe_test {
}
function recipe_stage {
dest="$(realpath "$1")"
echo "$dest"
make DESTDIR="$dest" install
cd "$dest/usr/local/bin/"
find . -type f -exec install -D "{}" "$dest/usr/bin/{}" \;
cd -
cd "$dest/usr/local/share/"
find . -type f -exec install -D "{}" "$dest/share/{}" \;
cd -
rm -r "$dest/usr/local/"
skip=1
}