765e304c4b
```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 ```
27 lines
765 B
Bash
27 lines
765 B
Bash
# Template file for 'mhddfs'
|
|
pkgname=mhddfs
|
|
version=0.1.39
|
|
revision=1
|
|
build_style=gnu-makefile
|
|
hostmakedepends="pkg-config"
|
|
makedepends="fuse-devel attr-devel uthash"
|
|
short_desc="FUSE filesystem that combines a several mountpoints into a single one"
|
|
maintainer="Orphaned <orphan@voidlinux.org>"
|
|
license="GPL-3"
|
|
homepage="http://mhddfs.uvw.ru/"
|
|
distfiles="http://mhddfs.uvw.ru/downloads/${pkgname}_${version}.tar.gz"
|
|
checksum=702fc5486460c1828898426b1935179ce60bc1ed16fc8bc575c9ec1d12acef91
|
|
|
|
pre_build() {
|
|
sed -i 's|^CFLAGS[[:blank:]]*=|override CFLAGS +=|g' Makefile
|
|
sed -i 's|^LDFLAGS[[:blank:]]*=|override LDFLAGS +=|g' Makefile
|
|
sed -i 's|gcc|${CC}|g' Makefile
|
|
}
|
|
|
|
do_install() {
|
|
vbin mhddfs
|
|
vman mhddfs.1
|
|
vdoc README
|
|
vdoc README.ru.UTF-8
|
|
vdoc ChangeLog
|
|
}
|