Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/bin/mksrcinfo
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2017-06-23 16:22:07 +0200
committerErich Eckner <git@eckner.net>2017-06-23 16:22:07 +0200
commitc50f770046dc8a95c3d8454f8f67a154e21f4f56 (patch)
tree959032c25b5880e2f0b2576ed18798ee04231dfa /bin/mksrcinfo
parente6407986535c5f17fff79315e7b541d8258d64e0 (diff)
bin/mksrcinfo: use makepkg and mksrcinfo as before
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