```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 ```
20 lines
597 B
Bash
20 lines
597 B
Bash
# Template file for 'bin86'
|
|
pkgname=bin86
|
|
version=0.16.21
|
|
revision=4
|
|
short_desc="A complete 8086 assembler and loader"
|
|
maintainer="Orphaned <orphan@voidlinux.org>"
|
|
homepage="http://v3.sk/~lkundrak/dev86/"
|
|
license="GPL-2"
|
|
distfiles="http://v3.sk/~lkundrak/dev86/bin86-${version}.tar.gz"
|
|
checksum=021e37cde3a20632c4c9000993cb4aa9f58cb82b1d3c26b9aeb62d6566925738
|
|
archs="i686* x86_64*"
|
|
|
|
do_build() {
|
|
make ${makejobs} CFLAGS="$CFLAGS" LDFLAGS="$LDFLAGS" PREFIX=/usr
|
|
}
|
|
do_install() {
|
|
vmkdir usr/bin
|
|
vmkdir usr/share/man/man1
|
|
make PREFIX=${DESTDIR}/usr MANDIR=${DESTDIR}/usr/share/man/man1 install
|
|
}
|