summaryrefslogtreecommitdiffstats
path: root/extra/a2ps/Pkgfile
blob: 7d5f7bffb0a3b96dcc16a89fb327dd6ee6b648e7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
# Description: Convertisseur ASCII vers Postscript 
# URL: http://www.inf.enst.fr/~demaille/a2ps/
# Maintainer: NuTyX core team
# Packager: fred.galusik at gmail dot com
# Depends on: perl, psutils, ghostscript, imagemagick

name=a2ps
version=4.14
release=1
source=(http://ftp.gnu.org/gnu/$name/$name-$version.tar.gz \
ftp://ftp.enst.fr/pub/unix/a2ps/i18n-fonts-0.1.tar.gz \
a2ps-4.14-check-mempcpy.patch a2ps-4.14-fix-stpcpy-proto.patch \
a2ps-4.13c-fnmatch-replacement.patch)

build() {
	cd $name-$version
	patch -p1 < ../a2ps-4.13c-fnmatch-replacement.patch
	patch -p1 < ../a2ps-4.14-check-mempcpy.patch
	patch -p0 < ../a2ps-4.14-fix-stpcpy-proto.patch
	sed -i "s|emacs||" contrib/Makefile.in
	sed -i 's/+0 -1/-k 1,2/' afm/make_fonts_map.sh
	sed -i "s|/usr/local/share|/usr/share|" configure
#	sed -i "s|char \*malloc ();|/* & */|" lib/path-concat.c
	libtoolize --force --copy
	autoreconf -I m4
	./configure --prefix=/usr \
	--mandir=/usr/share/man \
	--infodir=/usr/share/info \
	--sysconfdir=/etc/a2ps \
	--localstatedir=/var \
	--with-medium=A4
	make
	make DESTDIR=$PKG install
	rm $PKG/usr/share/info/dir
	cd ..
	cp -v i18n-fonts-0.1/fonts/* $PKG/usr/share/a2ps/fonts
	cp -v i18n-fonts-0.1/afm/* $PKG/usr/share/a2ps/afm
}