ae69000001
* 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 ```
40 lines
1 KiB
Bash
40 lines
1 KiB
Bash
# Template file for 'a2ps'
|
|
pkgname=a2ps
|
|
version=4.14
|
|
revision=5
|
|
configure_args="--sysconfdir=/etc/a2ps --enable-shared --with-medium=A4"
|
|
build_style=gnu-configure
|
|
hostmakedepends="perl gperf m4"
|
|
makedepends="ghostscript psutils groff cups"
|
|
depends="$makedepends"
|
|
short_desc="Any to PS filter"
|
|
maintainer="Orphaned <orphan@voidlinux.org>"
|
|
license="GPL-3.0-or-later"
|
|
homepage="http://www.gnu.org/software/a2ps/"
|
|
distfiles="${GNU_SITE}/${pkgname}/${pkgname}-${version}.tar.gz"
|
|
checksum=f3ae8d3d4564a41b6e2a21f237d2f2b104f48108591e8b83497500182a3ab3a4
|
|
conf_files="/etc/a2ps/a2ps.cfg /etc/a2ps/a2ps-site.cfg"
|
|
|
|
LDFLAGS="-lm"
|
|
|
|
pre_configure() {
|
|
sed -i "s/GPERF --version |/& head -n 1 |/" ./configure
|
|
sed -i "s|/usr/local/share|/usr/share|" ./configure
|
|
}
|
|
|
|
liba2ps-devel_package() {
|
|
short_desc+=" - development files"
|
|
depends="liba2ps>=${version}_${revision}"
|
|
pkg_install() {
|
|
vmove usr/include
|
|
vmove "usr/lib/*.a"
|
|
vmove "usr/lib/*.so"
|
|
}
|
|
}
|
|
|
|
liba2ps_package() {
|
|
short_desc+=" - library files"
|
|
pkg_install() {
|
|
vmove "usr/lib/*.so.*"
|
|
}
|
|
}
|