Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/bin/mksrcinfo
diff options
context:
space:
mode:
Diffstat (limited to 'bin/mksrcinfo')
-rwxr-xr-xbin/mksrcinfo5
1 files changed, 4 insertions, 1 deletions
diff --git a/bin/mksrcinfo b/bin/mksrcinfo
index a033a6a..cfbf917 100755
--- a/bin/mksrcinfo
+++ b/bin/mksrcinfo
@@ -1,3 +1,6 @@
#!/bin/sh
-mksrcinfo -o .SRCINFO
+grep -q '\$CARCH' 'PKGBUILD' && \
+ CARCH=i686 makepkg --printsrcinfo > \
+ '.SRCINFO' || \
+ mksrcinfo -o .SRCINFO