summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xlibrerepkg7
1 files changed, 5 insertions, 2 deletions
diff --git a/librerepkg b/librerepkg
index c33a538..d506003 100755
--- a/librerepkg
+++ b/librerepkg
@@ -51,17 +51,20 @@ makepkgflags=$@
tempdir=$(mktemp -d /tmp/$(basename $PWD).XXXXX)
+msg "Copying files"
+cp ./* ${tempdir}/
+
for _arch in ${arch[@]}; do
- export CARCH=${_arch}
msg "Repackaging: $pkgname $pkgver-$pkgrel ($(date -u))"
- cp ./* ${tempdir}/
stdnull pushd ${tempdir}
msg2 "Updating md5sums"
makepkg -gp rePKGBUILD >> rePKGBUILD
+ echo "export CARCH=${_arch}" >> rePKGBUILD
+
msg "Repackaging using makepkg"
makepkg -Lcdp rePKGBUILD ${makepkgflags}