summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xdiff-unfree2
-rwxr-xr-x[-rw-r--r--]librerepkg17
2 files changed, 15 insertions, 4 deletions
diff --git a/diff-unfree b/diff-unfree
index 5d991f3..2cc3ac7 100755
--- a/diff-unfree
+++ b/diff-unfree
@@ -45,7 +45,7 @@ tmp_dir=$(mktemp -d /tmp/${package}.XXXXXX)
unfree_dir="${tmp_dir}/packages/${package}/trunk"
svnrepo="packages"
-case $repo in;
+case $repo in
community*)
svnrepo="community"
;;
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
+