2014-04-16 22:40:46 +02:00
|
|
|
# Template file for 'a2ps'
|
|
|
|
pkgname="a2ps"
|
|
|
|
version="4.14"
|
2015-05-22 11:47:56 +02:00
|
|
|
revision=3
|
2014-04-16 22:40:46 +02:00
|
|
|
build_style=gnu-configure
|
|
|
|
short_desc="Any to PS filter"
|
2015-05-22 11:47:56 +02:00
|
|
|
maintainer="Carlo Dormeletti <carlo.dormeletti@alice.it>"
|
2014-04-17 11:40:45 +02:00
|
|
|
license="GPL-3"
|
2014-04-16 22:40:46 +02:00
|
|
|
hostmakedepends="perl gperf"
|
2014-04-17 11:40:45 +02:00
|
|
|
makedepends="ghostscript psutils groff cups"
|
2014-04-18 08:05:37 +02:00
|
|
|
depends="${makedepends}"
|
2014-04-17 11:40:45 +02:00
|
|
|
configure_args="--sysconfdir=/etc/a2ps --enable-shared --with-medium=A4"
|
|
|
|
LDFLAGS="-lm"
|
2014-04-16 22:40:46 +02:00
|
|
|
conf_files="/etc/a2ps/a2ps.cfg /etc/a2ps/a2ps-site.cfg"
|
|
|
|
homepage="http://www.gnu.org/software/a2ps/"
|
2015-05-22 11:47:56 +02:00
|
|
|
distfiles="${GNU_SITE}/$pkgname/$pkgname-$version.tar.gz"
|
2014-04-16 22:40:46 +02:00
|
|
|
checksum="f3ae8d3d4564a41b6e2a21f237d2f2b104f48108591e8b83497500182a3ab3a4"
|
|
|
|
|
2014-04-17 11:40:45 +02:00
|
|
|
pre_configure() {
|
2015-05-22 11:47:56 +02:00
|
|
|
sed -i "s/GPERF --version |/& head -n 1 |/" ./configure
|
|
|
|
sed -i "s|/usr/local/share|/usr/share|" ./configure
|
2014-04-16 22:40:46 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
liba2ps-devel_package() {
|
2015-05-22 11:47:56 +02:00
|
|
|
short_desc+=" - development files"
|
|
|
|
depends="liba2ps>=${version}_${revision}"
|
|
|
|
pkg_install() {
|
|
|
|
vmove usr/include
|
|
|
|
vmove "usr/lib/*.a"
|
|
|
|
vmove "usr/lib/*.so"
|
|
|
|
}
|
2014-04-16 22:40:46 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
liba2ps_package() {
|
2015-05-22 11:47:56 +02:00
|
|
|
short_desc+=" - library files"
|
|
|
|
pkg_install() {
|
|
|
|
vmove "usr/lib/*.so.*"
|
|
|
|
}
|
2014-04-16 22:40:46 +02:00
|
|
|
}
|