summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xextrapkg10
1 files changed, 10 insertions, 0 deletions
diff --git a/extrapkg b/extrapkg
index f6670b4..d042300 100755
--- a/extrapkg
+++ b/extrapkg
@@ -20,6 +20,16 @@ if [ ! -f PKGBUILD ]; then
exit 1
fi
+# define staging areas based on architecture
+if [ "$CARCH" = "i686" ]; then
+ suffix=''
+elif [ "$CARCH" = "x86_64" ]; then
+ suffix='64'
+else
+ 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