vp-build/srcpkgs/a2ps/template

40 lines
1.0 KiB
Bash

# Template file for 'a2ps'
pkgname="a2ps"
version="4.14"
revision=4
build_style=gnu-configure
short_desc="Any to PS filter"
maintainer="Carlo Dormeletti <carlo.dormeletti@alice.it>"
license="GPL-3"
hostmakedepends="perl gperf"
makedepends="ghostscript psutils groff cups"
depends="${makedepends}"
configure_args="--sysconfdir=/etc/a2ps --enable-shared --with-medium=A4"
LDFLAGS="-lm"
conf_files="/etc/a2ps/a2ps.cfg /etc/a2ps/a2ps-site.cfg"
homepage="http://www.gnu.org/software/a2ps/"
distfiles="${GNU_SITE}/$pkgname/$pkgname-$version.tar.gz"
checksum="f3ae8d3d4564a41b6e2a21f237d2f2b104f48108591e8b83497500182a3ab3a4"
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.*"
}
}