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.*"
|
|
}
|
|
}
|