a03d116397
```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
707 B
Bash
27 lines
707 B
Bash
# Template file for 'entr'
|
|
pkgname=entr
|
|
version=4.9
|
|
revision=1
|
|
build_style=gnu-makefile
|
|
short_desc="Utility for running arbitrary commands when files change"
|
|
maintainer="Andrea Brancaleoni <abc@pompel.me>"
|
|
license="ISC"
|
|
homepage="http://entrproject.org"
|
|
changelog="https://raw.githubusercontent.com/eradman/entr/master/NEWS"
|
|
distfiles="$homepage/code/$pkgname-$version.tar.gz"
|
|
checksum=e256a4d2fbe46f6132460833ba447e65d7f35ba9d0b265e7c4150397cc4405a2
|
|
|
|
post_extract() {
|
|
case "$XBPS_TARGET_MACHINE" in
|
|
*-musl) # No need for _LINUX_PORT compat.h and strlcpy.c
|
|
sed -i $wrksrc/Makefile.linux -e "s;-D_LINUX_PORT;;"
|
|
esac
|
|
}
|
|
|
|
pre_build() {
|
|
cp Makefile.linux Makefile
|
|
}
|
|
|
|
post_install() {
|
|
vlicense LICENSE
|
|
}
|