summaryrefslogtreecommitdiff
path: root/librerepkg
diff options
context:
space:
mode:
authorNicolas Reynolds <fauno@kiwwwi.com.ar>2011-05-22 11:13:52 -0300
committerNicolas Reynolds <fauno@kiwwwi.com.ar>2011-05-22 11:13:52 -0300
commit4f1392d774c081a03d9abab0c731704880d54d4c (patch)
treeabfa5f7c1dc185ddfbf2957b8094feb925a432b2 /librerepkg
parent50435a2614fe7f28e47164082e846b0a57c7f48c (diff)
parent3c53f6e6e8a9dc767680c5a53969e3d9aa3c5d81 (diff)
Merge branch 'master' of ssh://vparabola/srv/git/projects/libretools
Conflicts: libremessages
Diffstat (limited to 'librerepkg')
-rwxr-xr-xlibrerepkg16
1 files changed, 12 insertions, 4 deletions
diff --git a/librerepkg b/librerepkg
index 22c237d..ba8dea1 100755
--- a/librerepkg
+++ b/librerepkg
@@ -36,9 +36,17 @@ source rePKGBUILD
usage() {
echo "cd to a dir with a rePKGBUILD and other file info and run"
- echo $0
+ echo "$0 "
+ echo
+ echo "This script will repackage an arch package without compiling"
}
+while getopts 'h' arg; do
+ case $arg in
+ h) usage; exit 0 ;;
+ esac
+done
+
stdnull "tempdir=$(mktemp -d /tmp/$(basename $PWD).XXXXX)"
msg "Repackaging: $pkgname $pkgver-$pkgrel ($(date -u))"
@@ -47,6 +55,6 @@ stdnull "pushd ${tempdir}"
mv rePKGBUILD PKGBUILD
msg2 "Updating md5sums"
makepkg -g >> PKGBUILD
-msg "Repackaging using libremakepkg"
-sudo libremakepkg
-
+msg "Repackaging using makepkg"
+makepkg -Lc
+stdnull "popd ${tempdir}"