OCaml 4.14.0 rebuild
[arch-packages.git] / a2ps / repos / extra-x86_64 / PKGBUILD
blob3a7b85ed75d4a82f03de11441f64a34ed278d3e9
1 # Maintainer: Eric BĂ©langer <eric@archlinux.org>
3 pkgname=a2ps
4 pkgver=4.14
5 pkgrel=12
6 pkgdesc="An Any to PostScript filter"
7 arch=('x86_64')
8 url="https://www.gnu.org/software/a2ps/"
9 license=('GPL3')
10 depends=('psutils' 'imagemagick' 'perl')
11 makedepends=('gperf')
12 backup=('etc/a2ps/a2ps.cfg' 'etc/a2ps/a2ps-site.cfg')
13 source=(https://ftp.gnu.org/gnu/a2ps/${pkgname}-${pkgver}.tar.gz{,.sig}
14         a2ps-4.13c-fnmatch-replacement.patch a2ps-4.13c-emacs.patch
15         a2ps-4.13-manpage-chmod.patch a2ps-4.14-check-mempcpy.patch
16         a2ps-4.14-fix-stpcpy-proto.patch a2ps-texinfo5.patch
17         a2ps-4.13-security.patch
18         CVE-2014-0466.patch
19         CVE-2015-8107.patch
20         a2ps-texinfo67.patch
21         a2ps-adhere-source-date-epoch.patch)
22 sha1sums=('365abbbe4b7128bf70dad16d06e23c5701874852'
23           'SKIP'
24           '8783952d3410d8d59ed953e1db45e2ef1a0b8f65'
25           '94e35a6ad9268161bec22a56d4cfb696d635994a'
26           '2bb3d0a2ef2f3ff9262723e35c742a80ab0235ce'
27           '6aed29c1399e79f3914b408059610f9e7c0fc38e'
28           '58fa90134f1027e3f05aeb08212cbcc10f420738'
29           '81269db9dd29685b0ece2539070ced3f7a8472df'
30           '93a4db17edfaa99e3498c7d952c560dab49dbe42'
31           '0a04f4c145d3aef8f3c7537eb00cb4040c7209c9'
32           '08c51a9361eaefe76af61b70392fa5ac1c4356c7'
33           'f54b6b319a5c134e0ee9be8dc9c8f80a65dc98d6'
34           '6f37363785adf4357977de3d595d7938d63f0993')
35 validpgpkeys=('6EB39358D8328FE3CDC903A8CB6FA340E7075A54')
37 prepare() {
38   cd ${pkgname}-${pkgver}
39   sed -i -e '/^AM_C_PROTOTYPES/d' -e '/^AUTOMAKE_OPTIONS.*ansi2knr/d' \
40     -e 's:AM_CONFIG_HEADER:AC_CONFIG_HEADERS:' -e 's:AM_PROG_CC_STDC:AC_PROG_CC:' \
41     configure.in {contrib/sample,lib,src}/Makefile.am m4/protos.m4
42   sed -i "s:^countdictstack: \0:" contrib/psset.in
43   patch -p1 -i "${srcdir}/a2ps-4.13c-fnmatch-replacement.patch"
44   patch -p1 -i "${srcdir}/a2ps-4.13c-emacs.patch"
45   patch -p1 -i "${srcdir}/a2ps-4.13-manpage-chmod.patch"
46   patch -p1 -i "${srcdir}/a2ps-4.14-check-mempcpy.patch"
47   patch -p0 -i "${srcdir}/a2ps-4.14-fix-stpcpy-proto.patch"
48   patch -p1 -i "${srcdir}/a2ps-texinfo5.patch"
49   patch -p1 -i "${srcdir}/a2ps-4.13-security.patch"
50   patch -p1 -i "${srcdir}/CVE-2014-0466.patch"
51   patch -p1 -i "${srcdir}/CVE-2015-8107.patch"
52   patch -p1 -i "${srcdir}/a2ps-texinfo67.patch"
53   patch -p1 -i "${srcdir}/a2ps-adhere-source-date-epoch.patch"
56 build() {
57   cd ${pkgname}-${pkgver}
58   libtoolize --force --copy
59   autoreconf --force --install -I m4 
60   LIBS+="-lm" ./configure --prefix=/usr --sysconfdir=/etc/a2ps \
61     --includedir=/usr/include --enable-shared --enable-nls
62   make
65 package() {
66   cd ${pkgname}-${pkgver}
67   make DESTDIR="${pkgdir}" install