index : builder | |
Archlinux32 build system | gitolite user |
summaryrefslogtreecommitdiff |
author | Erich Eckner <erich.eckner.ext@bestsecret.com> | 2023-05-22 11:03:47 +0200 |
---|---|---|
committer | Erich Eckner <erich.eckner.ext@bestsecret.com> | 2023-05-22 11:03:47 +0200 |
commit | c7c582eabd2b133ba561de49982e21d5f3cae914 (patch) | |
tree | 68f0e2ee16413af4feb61200d120d868a253d34a | |
parent | e72fc0321679bbc40482a5afc04448dd3989ca5e (diff) |
-rwxr-xr-x | lib/common-functions | 11 |
diff --git a/lib/common-functions b/lib/common-functions index bf5d99c..3a7d635 100755 --- a/lib/common-functions +++ b/lib/common-functions @@ -457,11 +457,18 @@ extract_source_directory() { local output="$5" local sub_pkgrel="$6" + local pkgbase_translated=$( + printf '%s\n' "${pkgbase}" \ + | sed ' + s@+@plus@g + ' + ) + if [ -n "${revision}" ] \ && [ "${revision}" != '0000000000000000000000000000000000000000' ]; then # TODO: use cache, here - curl -LSs "https://gitlab.archlinux.org/archlinux/packaging/packages/${pkgbase}/-/archive/${revision}/${pkgbase}-${revision}.tar.gz" \ - |tar -xz --strip-components=1 -C "${output}" -- "${pkgbase}-${revision}" + curl -LSs "https://gitlab.archlinux.org/archlinux/packaging/packages/${pkgbase_translated}/-/archive/${revision}/${pkgbase_translated}-${revision}.tar.gz" \ + |tar -xz --strip-components=1 -C "${output}" -- "${pkgbase_translated}-${revision}" printf '\n' >> \ "${output}/PKGBUILD" fi |