From 0651d7e2d50f233026bb3c8049a60c4875a30f96 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Joshua=20Ismael=20Haase=20Hern=C3=A1ndez?= Date: Thu, 7 Apr 2011 17:27:51 -0500 Subject: Added working librerepkg Fixed diff-unfree --- librerepkg | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) mode change 100644 => 100755 librerepkg (limited to 'librerepkg') diff --git a/librerepkg b/librerepkg old mode 100644 new mode 100755 index 53751e4..22c237d --- 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 + -- cgit v1.2.3-2-g168b