Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/bin/build-packages
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2023-05-24 06:23:32 +0200
committerErich Eckner <git@eckner.net>2023-05-24 06:23:32 +0200
commitdd5644370fab070b7137b7369316797acedacb3f (patch)
tree6b3c894b30cc41e3f16e2152694b43107b3ac334 /bin/build-packages
parentb8feb744e437502a6f126621e7ea087601e0454f (diff)
fix shallow git clone of sources
Diffstat (limited to 'bin/build-packages')
-rwxr-xr-xbin/build-packages8
1 files changed, 7 insertions, 1 deletions
diff --git a/bin/build-packages b/bin/build-packages
index 95bcf8d..821491a 100755
--- a/bin/build-packages
+++ b/bin/build-packages
@@ -496,7 +496,13 @@ while [ "${count}" -ne 0 ] && \
set -e
CARCH="${arch}"
. /usr/share/makepkg/util/source.sh
- . PKGBUILD
+ eval "$(
+ sed '
+ :a
+ s/^\(\S\+\)-/\1_/
+ ta
+ ' PKGBUILD
+ )"
printf '%s\n' "${source[@]}" \
| grep '^git+' \
| while read -r netfile; do