103ab731ab
* runit is kept at -Np0 ```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 ```
28 lines
939 B
Bash
28 lines
939 B
Bash
# Template file for 'rinse'
|
|
pkgname=rinse
|
|
version=3.5
|
|
revision=2
|
|
build_style=gnu-makefile
|
|
make_check_target=test
|
|
hostmakedepends="dpkg"
|
|
makedepends="perl"
|
|
depends="perl-LWP rpm wget"
|
|
checkdepends="perl-LWP perl-Test-Pod rpm wget"
|
|
short_desc="Bootstrap a rpm based distribution like debootstrap"
|
|
maintainer="Orphaned <orphan@voidlinux.org>"
|
|
license="Artistic-1.0-Perl, GPL-1.0-or-later"
|
|
homepage="https://salsa.debian.org/debian/rinse"
|
|
changelog="https://salsa.debian.org/debian/rinse/raw/master/debian/changelog"
|
|
distfiles="https://salsa.debian.org/debian/rinse/-/archive/${version}/rinse-${version}.tar.gz"
|
|
checksum=ebe2384f2aa4565c5f29882b177f7afd4c7cdbca9de9525618c6040e63a76d23
|
|
|
|
|
|
conf_files="/etc/rinse/rinse.conf"
|
|
|
|
pre_install() {
|
|
sed -i "s|pod2man.*$|pod2man --release=${version} --official --section=8 ./bin/rinse ./bin/rinse.8|g" Makefile
|
|
}
|
|
|
|
do_install() {
|
|
make ${makejobs} PREFIX="$DESTDIR" sbindir="${DESTDIR}/bin" install
|
|
}
|