* arduino and antiword 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 ```
33 lines
901 B
Bash
33 lines
901 B
Bash
# Template file for 'agg'
|
|
pkgname=agg
|
|
version=2.5
|
|
revision=5
|
|
build_style=gnu-configure
|
|
configure_args="--disable-examples"
|
|
disable_parallel_build=1
|
|
hostmakedepends="SDL-devel automake gettext-devel libtool pkg-config"
|
|
makedepends="SDL-devel freetype-devel"
|
|
short_desc="A High Quality Rendering Engine for C++"
|
|
maintainer="Orphaned <orphan@voidlinux.org>"
|
|
homepage="http://www.antigrain.com/"
|
|
license="GPL-2.0-or-later"
|
|
distfiles="http://www.antigrain.com/agg-${version}.tar.gz"
|
|
checksum=ab1edc54cc32ba51a62ff120d501eecd55fceeedf869b9354e7e13812289911f
|
|
|
|
pre_configure() {
|
|
sed -e '/AM_C_PROTOTYPES/d' -i configure.in
|
|
touch NEWS README AUTHORS
|
|
autoreconf -fi
|
|
}
|
|
|
|
agg-devel_package() {
|
|
depends="freetype-devel agg>=${version}_${revision}"
|
|
short_desc+=" - development files"
|
|
pkg_install() {
|
|
vmove usr/include
|
|
vmove usr/lib/pkgconfig
|
|
vmove usr/lib/*.a
|
|
vmove usr/lib/*.so
|
|
vmove usr/share
|
|
}
|
|
}
|