summaryrefslogtreecommitdiffstats
path: root/extra/a2ps/Pkgfile
diff options
context:
space:
mode:
authorThierry N <thierryn1 at hispeed dot ch>2009-08-09 12:50:11 +0200
committerThierry N <thierryn1 at hispeed dot ch>2009-08-09 12:50:11 +0200
commit76f65ca66f80e014affad0c53dc2ba4c2446a2e4 (patch)
treebca25add69c194a766c9a63d3064f303cb022b5c /extra/a2ps/Pkgfile
parent0c3981989a49a7aa54c6258cb9edbe1f67464a1c (diff)
downloadnutyx-extra-76f65ca66f80e014affad0c53dc2ba4c2446a2e4.tar.gz
nutyx-extra-76f65ca66f80e014affad0c53dc2ba4c2446a2e4.tar.bz2
nutyx-extra-76f65ca66f80e014affad0c53dc2ba4c2446a2e4.tar.xz
nutyx-extra-76f65ca66f80e014affad0c53dc2ba4c2446a2e4.zip
Ajout de a2ps#4.13b-3
Diffstat (limited to 'extra/a2ps/Pkgfile')
-rwxr-xr-xextra/a2ps/Pkgfile32
1 files changed, 32 insertions, 0 deletions
diff --git a/extra/a2ps/Pkgfile b/extra/a2ps/Pkgfile
new file mode 100755
index 000000000..312a75d2e
--- /dev/null
+++ b/extra/a2ps/Pkgfile
@@ -0,0 +1,32 @@
+# 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
+
+name=a2ps
+version=4.13b
+release=3
+source=(http://ftp.gnu.org/gnu/$name/$name-$version.tar.gz \
+ftp://ftp.enst.fr/pub/unix/a2ps/i18n-fonts-0.1.tar.gz)
+
+build() {
+cd $name-4.13
+ 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
+ ./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
+}
+