Robin Candau pushed to branch main at Arch Linux / Packaging / Packages / abuild
Commits:
b2ab2c4d by Robin Candau at 2025-12-03T00:42:52+01:00
upgpkg: 3.15.0-3: Modify sources in prepare()
- - - - -
2 changed files:
- .SRCINFO
- PKGBUILD
Changes:
=====================================
.SRCINFO
=====================================
@@ -1,7 +1,7 @@
pkgbase = abuild
pkgdesc = Alpine build tools
pkgver = 3.15.0
- pkgrel = 2
+ pkgrel = 3
url = https://gitlab.alpinelinux.org/alpine/abuild
install = abuild.install
arch = x86_64
=====================================
PKGBUILD
=====================================
@@ -4,7 +4,7 @@
pkgname=abuild
pkgver=3.15.0
-pkgrel=2
+pkgrel=3
pkgdesc="Alpine build tools"
url="https://gitlab.alpinelinux.org/alpine/abuild"
arch=('x86_64')
@@ -33,6 +33,13 @@
sha512sums=('b0d33e117a96692173b99145f7c14b5826639e3d5627219871b054a3fca6d39790d
prepare() {
cd "${pkgname}-${pkgver}"
patch -Np1 -i "${srcdir}/allow_running_abuild_rootbld.patch"
+
+ find -type f | while read file; do
+ sed -E -i "${file}" \
+ -e '1s|#!/usr/bin/env ash$|#!/bin/busybox ash|' \
+ -e '1s|#!/bin/ash$|#!/bin/busybox ash|' \
+ -e '1s|#!/bin/ash\s+(.*)$|#!/bin/busybox ash\nset \1|'
+ done
}
build() {
@@ -44,12 +51,6 @@ package() {
cd "${pkgname}-${pkgver}"
make install VERSION="${pkgver}" DESTDIR="${pkgdir}"
- for bin in "${pkgdir}"/usr/bin/*; do
- sed -E -i "${bin}" \
- -e '1s|#!/bin/ash$|#!/bin/busybox ash|' \
- -e '1s|#!/bin/ash\s+(.*)$|#!/bin/busybox ash\nset \1|'
- done
-
install -Dm 644 "${pkgname}.conf" "${pkgdir}/etc/${pkgname}.conf"
install -Dm 644 "${srcdir}/${pkgname}.sysusers"
"${pkgdir}/usr/lib/sysusers.d/${pkgname}.conf"
install -Dm 644 "${srcdir}/${pkgname}.tmpfiles"
"${pkgdir}/usr/lib/tmpfiles.d/${pkgname}.conf"
View it on GitLab:
https://gitlab.archlinux.org/archlinux/packaging/packages/abuild/-/commit/b2ab2c4d9f0c861b490591cceca18d9e13d7c267
--
View it on GitLab:
https://gitlab.archlinux.org/archlinux/packaging/packages/abuild/-/commit/b2ab2c4d9f0c861b490591cceca18d9e13d7c267
You're receiving this email because of your account on gitlab.archlinux.org.