summaryrefslogtreecommitdiff
path: root/extra/enscript
diff options
context:
space:
mode:
Diffstat (limited to 'extra/enscript')
-rw-r--r--extra/enscript/PKGBUILD32
-rw-r--r--extra/enscript/enscript.install15
2 files changed, 47 insertions, 0 deletions
diff --git a/extra/enscript/PKGBUILD b/extra/enscript/PKGBUILD
new file mode 100644
index 000000000..d24620f96
--- /dev/null
+++ b/extra/enscript/PKGBUILD
@@ -0,0 +1,32 @@
+# $Id: PKGBUILD 189649 2013-07-04 03:34:44Z eric $
+# Maintainer: Paul Mattal <paul@archlinux.org>
+# Contributor: Tom Newsom <Jeepster@gmx.co.uk>
+
+pkgname=enscript
+pkgver=1.6.6
+pkgrel=1
+pkgdesc="Convert ASCII files to PostScript suitable for printing"
+arch=('i686' 'x86_64')
+url="http://git.savannah.gnu.org/cgit/enscript.git"
+license=('GPL3')
+depends=('glibc')
+backup=('etc/enscript/enscript.cfg')
+install=enscript.install
+source=(ftp://ftp.gnu.org/gnu/$pkgname/$pkgname-$pkgver.tar.gz)
+md5sums=('3acc242b829adacabcaf28533f049afd')
+
+build() {
+ cd $pkgname-$pkgver
+ ./configure --prefix=/usr --sysconfdir=/etc/enscript
+ make
+}
+
+check() {
+ cd $pkgname-$pkgver
+ make check
+}
+
+package() {
+ cd $pkgname-$pkgver
+ make DESTDIR="$pkgdir" install
+}
diff --git a/extra/enscript/enscript.install b/extra/enscript/enscript.install
new file mode 100644
index 000000000..18ffbe910
--- /dev/null
+++ b/extra/enscript/enscript.install
@@ -0,0 +1,15 @@
+infodir=usr/share/info
+
+post_install() {
+ [[ -x usr/bin/install-info ]] || return 0
+ install-info "$infodir/enscript.info.gz" "$infodir/dir" 2> /dev/null
+}
+
+post_upgrade() {
+ post_install "$1"
+}
+
+pre_remove() {
+ [[ -x usr/bin/install-info ]] || return 0
+ install-info --delete "$infodir/enscript.info.gz" "$infodir/dir" 2> /dev/null
+}