diff options
author | Nicolás Reynolds <fauno@endefensadelsl.org> | 2014-02-05 03:38:19 +0000 |
---|---|---|
committer | Nicolás Reynolds <fauno@endefensadelsl.org> | 2014-02-05 03:38:19 +0000 |
commit | 8b3a0b83eb5ad9bcff19b466bcd72c18fdf466ce (patch) | |
tree | 3ff1e4ff16a28abfcec73d664b339c7ce57f5891 /extra/enscript | |
parent | 994ca8b3d7a14ef97d75b40b7554a9892bd0283f (diff) |
Wed Feb 5 03:36:49 UTC 2014
Diffstat (limited to 'extra/enscript')
-rw-r--r-- | extra/enscript/PKGBUILD | 32 | ||||
-rw-r--r-- | extra/enscript/enscript.install | 15 |
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 +} |