* gcc is kept at -Np0, because of void-cross ```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 ```
26 lines
792 B
Bash
26 lines
792 B
Bash
# Template file for 'gxemul'
|
|
pkgname=gxemul
|
|
version=0.6.2
|
|
revision=2
|
|
makedepends="libX11-devel"
|
|
short_desc="Framework for full-system computer architecture emulation"
|
|
maintainer="Orphaned <orphan@voidlinux.org>"
|
|
license="BSD-3-Clause"
|
|
homepage="http://gavare.se/gxemul/"
|
|
changelog="http://gavare.se/gxemul/gxemul-stable/HISTORY.html"
|
|
distfiles="http://gavare.se/gxemul/src/gxemul-${version}.tar.gz"
|
|
checksum=a703ac7965feb3c701c7677d78c353f0efa1af4d36a9508fb045eb63dd571547
|
|
nocross="./_testpri: cannot execute binary file: Exec format error"
|
|
|
|
do_configure() {
|
|
PREFIX=/usr MANDIR=${DESTDIR}/usr/share/man ./configure
|
|
# Skip tests
|
|
vsed -i '/^install:/s/test//' Makefile
|
|
}
|
|
do_build() {
|
|
make CXX=$CXX CC=$CC ${makejobs}
|
|
}
|
|
do_install() {
|
|
make PREFIX=${DESTDIR}/usr install
|
|
vlicense LICENSE
|
|
}
|