Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/extrapkg
diff options
context:
space:
mode:
Diffstat (limited to 'extrapkg')
-rwxr-xr-xextrapkg5
1 files changed, 5 insertions, 0 deletions
diff --git a/extrapkg b/extrapkg
index fa72c53..dada38a 100755
--- a/extrapkg
+++ b/extrapkg
@@ -20,6 +20,11 @@ if [ ! -f PKGBUILD ]; then
exit 1
fi
+if [ -z "$CARCH" ]; then
+ echo "CARCH must be set to a recognized value!"
+ exit 1
+fi
+
source PKGBUILD
pkgfile=${pkgname}-${pkgver}-${pkgrel}-${CARCH}.pkg.tar.gz
oldstylepkgfile=${pkgname}-${pkgver}-${pkgrel}.pkg.tar.gz