summaryrefslogtreecommitdiffstats
path: root/a2ps/Pkgfile
diff options
context:
space:
mode:
authortnut <tnut at nutyx dot com>2012-01-08 12:15:45 +0100
committertnut <tnut at nutyx dot com>2012-01-08 12:15:45 +0100
commit3f57a7f93b3e7550cbd73036f6a56654e17d1d5c (patch)
tree819b14ab0377fe2054fe59866669d904e9e0b4b5 /a2ps/Pkgfile
parentc9972ec7f32bf9d37388e853fe9bf633e242d05a (diff)
downloadnutyx-extra-3f57a7f93b3e7550cbd73036f6a56654e17d1d5c.tar.gz
nutyx-extra-3f57a7f93b3e7550cbd73036f6a56654e17d1d5c.tar.bz2
nutyx-extra-3f57a7f93b3e7550cbd73036f6a56654e17d1d5c.tar.xz
nutyx-extra-3f57a7f93b3e7550cbd73036f6a56654e17d1d5c.zip
split de git pakxe et NuTyX-extra
Diffstat (limited to 'a2ps/Pkgfile')
-rwxr-xr-xa2ps/Pkgfile42
1 files changed, 42 insertions, 0 deletions
diff --git a/a2ps/Pkgfile b/a2ps/Pkgfile
new file mode 100755
index 000000000..516650aab
--- /dev/null
+++ b/a2ps/Pkgfile
@@ -0,0 +1,42 @@
+# 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: psutils, ghostscript, imagemagick, gperf
+# Run on: 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 \
+http://nutyx.meticul.eu/files/patchs/$name/a2ps-4.14-check-mempcpy.patch \
+http://nutyx.meticul.eu/files/patchs/$name/a2ps-4.14-fix-stpcpy-proto.patch \
+http://nutyx.meticul.eu/files/patchs/$name/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
+}
+
+