2 # Contributor: Eric BĂ©langer <eric@archlinux.org>
7 pkgdesc="An Any to PostScript filter"
9 url="https://www.gnu.org/software/a2ps/"
11 depends=('psutils' 'imagemagick' 'perl')
13 backup=('etc/a2ps/a2ps.cfg' 'etc/a2ps/a2ps-site.cfg')
14 source=(https://ftp.gnu.org/gnu/a2ps/${pkgname}-${pkgver}.tar.gz{,.sig}
15 a2ps-4.13c-emacs.patch
16 a2ps-adhere-source-date-epoch.patch)
17 sha256sums=('4a063f84ba89d86be14a6704ca35fd130083b572f1376b439a1b79b67b206dd7'
19 '943739a788db47f10942477754f42c8c9b22cdaad4463bea4103c31a330de76a'
20 '305ba7b9a44e7d6480a23098efb27aab5daedde71defcfe2f1b01b70d025e3db')
21 validpgpkeys=('24093F016FFE8602EF449BB84C8EF3DA3FD37230') # Reuben Thomas <rrt@sc3d.org>
24 cd ${pkgname}-${pkgver}
25 patch -p1 -i "${srcdir}/a2ps-4.13c-emacs.patch"
26 patch -p1 -i "${srcdir}/a2ps-adhere-source-date-epoch.patch"
30 cd ${pkgname}-${pkgver}
31 libtoolize --force --copy
32 autoreconf --force --install -I m4
33 LIBS+="-lm" ./configure --prefix=/usr --sysconfdir=/etc/a2ps \
34 --includedir=/usr/include --enable-shared --enable-nls
39 cd ${pkgname}-${pkgver}
40 make DESTDIR="${pkgdir}" install