```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 ```
23 lines
624 B
Bash
23 lines
624 B
Bash
# Template file for 'mergerfs'
|
|
pkgname=mergerfs
|
|
version=2.32.4
|
|
revision=1
|
|
build_style=gnu-makefile
|
|
make_use_env=yes
|
|
hostmakedepends="automake libtool pkg-config which"
|
|
makedepends="fuse-devel"
|
|
short_desc="FUSE union filesystem"
|
|
maintainer="Orphaned <orphan@voidlinux.org>"
|
|
license="ISC"
|
|
homepage="https://github.com/trapexit/mergerfs"
|
|
distfiles="${homepage}/archive/${version}.tar.gz"
|
|
checksum=8857d2058c38251bff539c77b6c90472ab139bda96265ce09485c3689d11a4ac
|
|
|
|
pre_build() {
|
|
# we build from source, spoof release tarball
|
|
vsed -i "s|^VERSION=.*|VERSION=$pkgver|" tools/update-version
|
|
}
|
|
|
|
post_install() {
|
|
vlicense LICENSE
|
|
}
|