summaryrefslogtreecommitdiff
path: root/librerepkg
diff options
context:
space:
mode:
authorJoshua Ismael Haase Hernández <hahj87@gmail.com>2011-04-07 17:27:51 -0500
committerJoshua Ismael Haase Hernández <hahj87@gmail.com>2011-04-07 17:30:13 -0500
commit0651d7e2d50f233026bb3c8049a60c4875a30f96 (patch)
tree69575e60a0711c1cfa1b14475a6cc8576af8e8c1 /librerepkg
parent6c9b2af1bf30486f69ef49bf43c7e9af4eb35bde (diff)
Added working librerepkgv20110407
Fixed diff-unfree
Diffstat (limited to 'librerepkg')
-rwxr-xr-x[-rw-r--r--]librerepkg17
1 files changed, 14 insertions, 3 deletions
diff --git a/librerepkg b/librerepkg
index 53751e4..22c237d 100644..100755
--- a/librerepkg
+++ b/librerepkg
@@ -32,10 +32,21 @@ fi
source /etc/makepkg.conf
source /etc/abs.conf
+source rePKGBUILD
+
+usage() {
+ echo "cd to a dir with a rePKGBUILD and other file info and run"
+ echo $0
+}
stdnull "tempdir=$(mktemp -d /tmp/$(basename $PWD).XXXXX)"
-cp rePKGBUILD ${tempdir}/PKGBUILD
-pushd ${tempdir}
-msg Building using libremakepkg
+msg "Repackaging: $pkgname $pkgver-$pkgrel ($(date -u))"
+cp ./* ${tempdir}/
+stdnull "pushd ${tempdir}"
+mv rePKGBUILD PKGBUILD
+msg2 "Updating md5sums"
+makepkg -g >> PKGBUILD
+msg "Repackaging using libremakepkg"
sudo libremakepkg
+