861ac185a6
```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 ```
33 lines
642 B
Bash
33 lines
642 B
Bash
# Template file for 'lfe'
|
|
pkgname=lfe
|
|
version=1.3
|
|
revision=3
|
|
hostmakedepends="erlang"
|
|
depends="erlang"
|
|
short_desc="Lisp flavoured erlang"
|
|
maintainer="Orphaned <orphan@voidlinux.org>"
|
|
license="Apache-2.0"
|
|
homepage="http://lfe.io/"
|
|
distfiles="https://github.com/rvirding/lfe/archive/v${version}.tar.gz"
|
|
checksum=04634f2c700ecedb55f4369962837792669e6be809dba90d81974198fc2b7b72
|
|
|
|
do_build() {
|
|
make
|
|
}
|
|
|
|
do_install() {
|
|
for b in lfe lfec lfescript; do
|
|
vbin bin/${b}
|
|
done
|
|
|
|
for m in doc/man/*; do
|
|
vman ${m}
|
|
done
|
|
|
|
for f in doc/{*.txt,*.md}; do
|
|
vdoc ${f}
|
|
done
|
|
|
|
vmkdir usr/lib/erlang/lib/lfe/ebin
|
|
vcopy ebin/* usr/lib/erlang/lib/lfe/ebin
|
|
}
|