2fd8d4df94
```sh git grep -l '^patch_args=-Np0' "srcpkgs/$1*/template" | while read template; do for p in ${template%/template}/patches/*; do sed -i ' \,^[+-][+-][+-] /dev/null,b /^[*-]\+ [0-9]\+\(,[0-9]\+\)\? [*-]\+$/b s,^[*][*][*] ,&a/, /^--- /{ s,\(^--- \)\(./\)*,\1a/, s,[.-][Oo][Rr][Ii][Gg]\([ /]\),\1, s/[.-][Oo][Rr][Ii][Gg]$// s/[.]patched[.]\([^.]\)/.\1/ h } /^+++ -/{ g s/^--- a/+++ b/ b } s,\(^+++ \)\(./\)*,\1b/, ' "$p" done sed -i '/^patch_args=/d' $template done ```
34 lines
1.1 KiB
Bash
34 lines
1.1 KiB
Bash
# Template file for 'os-prober'
|
|
pkgname=os-prober
|
|
version=1.78
|
|
revision=1
|
|
build_style=gnu-makefile
|
|
make_dirs="/var/lib/os-prober 0755 root root"
|
|
short_desc="Utility to detect other OSes on a set of drives"
|
|
maintainer="Orphaned <orphan@voidlinux.org>"
|
|
license="GPL-2.0-or-later"
|
|
homepage="https://packages.debian.org/sid/os-prober"
|
|
distfiles="${DEBIAN_SITE}/main/o/${pkgname}/${pkgname}_${version}.tar.xz"
|
|
checksum=6e909f511035698145ba01ad63fd53fce6ee24529c76e2698e346bbac49950e9
|
|
|
|
case "$XBPS_TARGET_MACHINE" in
|
|
i686*|x86_64*) _ARCH="x86";;
|
|
ppc*) _ARCH="powerpc";;
|
|
*) ;;
|
|
esac
|
|
|
|
do_install() {
|
|
vbin linux-boot-prober
|
|
vbin os-prober
|
|
vinstall newns 755 usr/lib/os-prober
|
|
vinstall common.sh 755 usr/share/os-prober
|
|
|
|
for dir in os-probes os-probes/mounted os-probes/init linux-boot-probes linux-boot-probes/mounted; do
|
|
vmkdir usr/lib/${dir}
|
|
install -m755 -t ${DESTDIR}/usr/lib/${dir} ${dir}/common/*
|
|
[ -n "$_ARCH" -a -d ${dir}/${_ARCH} ] && cp -r ${dir}/${_ARCH}/* ${DESTDIR}/usr/lib/${dir}
|
|
done
|
|
if [ -n "$_ARCH" -a "$_ARCH" = "x86" ]; then
|
|
vinstall os-probes/mounted/powerpc/20macosx 755 usr/lib/os-probes/mounted
|
|
fi
|
|
}
|