archrelease: copy trunk to extra-x86_64
[arch-packages.git] / a2ps / trunk / PKGBUILD
blobf7a28d01a3b500b1dca85d02ca4632d91663cb6d
1 # Maintainer:
2 # Contributor: Eric BĂ©langer <eric@archlinux.org>
4 pkgname=a2ps
5 pkgver=4.15.4
6 pkgrel=1
7 pkgdesc="An Any to PostScript filter"
8 arch=('x86_64')
9 url="https://www.gnu.org/software/a2ps/"
10 license=('GPL3')
11 depends=('psutils' 'imagemagick' 'perl')
12 makedepends=('gperf')
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'
18             'SKIP'
19             '943739a788db47f10942477754f42c8c9b22cdaad4463bea4103c31a330de76a'
20             '305ba7b9a44e7d6480a23098efb27aab5daedde71defcfe2f1b01b70d025e3db')
21 validpgpkeys=('24093F016FFE8602EF449BB84C8EF3DA3FD37230') # Reuben Thomas <rrt@sc3d.org>
23 prepare() {
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"
29 build() {
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
35   make
38 package() {
39   cd ${pkgname}-${pkgver}
40   make DESTDIR="${pkgdir}" install