PKGBUILD 1.9 KB
Newer Older
1
# Maintainer: Eric Bélanger <eric@archlinux.org>
Aaron Griffin's avatar
Aaron Griffin committed
2
3

pkgname=a2ps
Eric Bélanger's avatar
Eric Bélanger committed
4
pkgver=4.14
5
pkgrel=4
6
pkgdesc="An Any to PostScript filter"
Eric Bélanger's avatar
Eric Bélanger committed
7
8
9
arch=('i686' 'x86_64')
url="http://www.gnu.org/software/a2ps/"
license=('GPL3')
10
depends=('ghostscript' 'psutils' 'imagemagick')
Eric Bélanger's avatar
Eric Bélanger committed
11
12
13
14
makedepends=('gperf')
backup=('etc/a2ps/a2ps.cfg' 'etc/a2ps/a2ps-site.cfg')
options=('!libtool')
install=a2ps.install
15
source=(ftp://ftp.gnu.org/gnu/a2ps/${pkgname}-${pkgver}.tar.gz{,.sig}
16
17
18
        a2ps-4.13c-fnmatch-replacement.patch a2ps-4.13c-emacs.patch 
	a2ps-4.13-manpage-chmod.patch a2ps-4.14-check-mempcpy.patch 
	a2ps-4.14-fix-stpcpy-proto.patch a2ps-texinfo5.patch)
19
sha1sums=('365abbbe4b7128bf70dad16d06e23c5701874852'
20
          'SKIP'
21
22
23
24
          '8783952d3410d8d59ed953e1db45e2ef1a0b8f65'
          '94e35a6ad9268161bec22a56d4cfb696d635994a'
          '2bb3d0a2ef2f3ff9262723e35c742a80ab0235ce'
          '6aed29c1399e79f3914b408059610f9e7c0fc38e'
25
26
          '58fa90134f1027e3f05aeb08212cbcc10f420738'
          '81269db9dd29685b0ece2539070ced3f7a8472df')
Aaron Griffin's avatar
Aaron Griffin committed
27

28
29
30
31
32
33
34
35
36
37
38
prepare() {
  cd ${pkgname}-${pkgver}
  sed -i -e '/^AM_C_PROTOTYPES/d' -e '/^AUTOMAKE_OPTIONS.*ansi2knr/d' \
    -e 's:AM_CONFIG_HEADER:AC_CONFIG_HEADERS:' -e 's:AM_PROG_CC_STDC:AC_PROG_CC:' \
    configure.in {contrib/sample,lib,src}/Makefile.am m4/protos.m4
  sed -i "s:^countdictstack: \0:" contrib/psset.in
  patch -p1 -i "${srcdir}/a2ps-4.13c-fnmatch-replacement.patch"
  patch -p1 -i "${srcdir}/a2ps-4.13c-emacs.patch"
  patch -p1 -i "${srcdir}/a2ps-4.13-manpage-chmod.patch"
  patch -p1 -i "${srcdir}/a2ps-4.14-check-mempcpy.patch"
  patch -p0 -i "${srcdir}/a2ps-4.14-fix-stpcpy-proto.patch"
39
  patch -p1 -i "${srcdir}/a2ps-texinfo5.patch"
40
41
}

Aaron Griffin's avatar
Aaron Griffin committed
42
build() {
43
  cd ${pkgname}-${pkgver}
44
  libtoolize --force --copy
45
  autoreconf --force --install -I m4 
Aaron Griffin's avatar
Aaron Griffin committed
46
  ./configure --prefix=/usr --sysconfdir=/etc/a2ps \
47
48
49
50
51
    --includedir=/usr/include --enable-nls
  make
}

package() {
52
  cd ${pkgname}-${pkgver}
53
  make DESTDIR="${pkgdir}" install
Aaron Griffin's avatar
Aaron Griffin committed
54
}