* runit is kept at -Np0 ```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 ```
25 lines
696 B
Bash
25 lines
696 B
Bash
# Template file for 'rdis-git'
|
|
pkgname=rdis-git
|
|
version=20150722
|
|
revision=12
|
|
hostmakedepends="pkg-config git"
|
|
makedepends="openssl-devel gtk+3-devel jansson-devel LuaJIT-devel udis86-devel"
|
|
short_desc="A binary analysis tool for Linux"
|
|
maintainer="Orphaned <orphan@voidlinux.org>"
|
|
license="GPL-3"
|
|
homepage="https://github.com/endeav0r/rdis"
|
|
|
|
do_fetch() {
|
|
git clone git://github.com/endeav0r/rdis.git $wrksrc
|
|
cd $wrksrc
|
|
git reset --hard 1370ca0f737a790e3ca7d7d9513543d7ea52c3a4
|
|
}
|
|
do_build() {
|
|
sed -i src/Makefile src/*/Makefile \
|
|
-e "s;^\(CCFLAGS=\)\(.*\);\1${CFLAGS} \2;" \
|
|
-e 's;$(LIB) $(CCFLAGS);$(LIB) $(LDFLAGS) $(CCFLAGS);'
|
|
make CC=$CC ${makejobs}
|
|
}
|
|
do_install() {
|
|
vbin src/rdis
|
|
}
|