summaryrefslogtreecommitdiff
path: root/libre/psutils-libre/PKGBUILD
diff options
context:
space:
mode:
authorNicolás Reynolds <apoyosis@correo.inta.gob.ar>2012-01-05 16:12:34 -0300
committerNicolás Reynolds <apoyosis@correo.inta.gob.ar>2012-01-05 16:12:34 -0300
commit9f6b0e3307f40a6115482338178e41c52c8cc072 (patch)
tree62616aba6f26e37c587b67b3507be7a20dc990d4 /libre/psutils-libre/PKGBUILD
parent6550e3926da7432dd8287740ddc488e37ece05c4 (diff)
downloadabslibre-9f6b0e3307f40a6115482338178e41c52c8cc072.tar.gz
abslibre-9f6b0e3307f40a6115482338178e41c52c8cc072.tar.bz2
abslibre-9f6b0e3307f40a6115482338178e41c52c8cc072.zip
Rebuilds and minor changes
Diffstat (limited to 'libre/psutils-libre/PKGBUILD')
-rw-r--r--libre/psutils-libre/PKGBUILD42
1 files changed, 27 insertions, 15 deletions
diff --git a/libre/psutils-libre/PKGBUILD b/libre/psutils-libre/PKGBUILD
index 6ed3b7f60..4cb5ac014 100644
--- a/libre/psutils-libre/PKGBUILD
+++ b/libre/psutils-libre/PKGBUILD
@@ -1,31 +1,43 @@
-# Maintainer: Henry Jensen <hjensen@connochaetos.org>
+# $Id: PKGBUILD 140791 2011-10-19 10:03:22Z andrea $
+# Maintainer: Ronald van Haren <ronald.archlinux.org>
+# Contributor: eric <eric@archlinux.org>
# Contributor: Tom Newsom <Jeepster@gmx.co.uk>
# Contributor: xihh <hahj87@gmail.com>
pkgname=psutils-libre
pkgver=1.17
-pkgrel=1
+pkgrel=3
+arch=('i686' 'x86_64' 'mips64el')
pkgdesc="A set of postscript utilities"
-arch=(i686 x86_64)
+url="http://www.tardis.ed.ac.uk/~ajcd/psutils/index.html"
license=('custom')
-depends=('glibc' 'ghostscript')
+depends=('glibc' 'ghostscript-libre')
provides=('psutils-lprng' 'psutils')
replaces=('psutils-lprng' 'psutils')
conflicts=('psutils-lprng' 'psutils')
-url="http://www.connochaetos.org"
-source=(http://www.connochaetos.org/misc/${pkgname}-${pkgver}.tar.gz)
-md5sums=('5553b70be2484cef7a76d741a26f24d5')
+options=('!makeflags')
+source=(http://www.connochaetos.org/misc/${pkgname}-${pkgver}.tar.gz
+ 'psutils-1.17.diff')
+md5sums=('5553b70be2484cef7a76d741a26f24d5'
+ '2b49e9e796000b42f42804d4b50a2be1')
build() {
cd "${srcdir}/${pkgname}"
+ patch -Np1 -i "${srcdir}/psutils-1.17.diff"
+ make -f Makefile.unix BINDIR="${pkgdir}/usr/bin" \
+ INCLUDEDIR="${pkgdir}/usr/include/psutils" PERL=/usr/bin/perl \
+ MANDIR="${pkgdir}/usr/share/man/man1" \
+ CFLAGS="$CFLAGS -DPAPER=\\\"letter\\\" -DUNIX -Wall" \
+ CCFLAGS="$LDFLAGS"
+}
+
+package() {
+ cd "${srcdir}/${pkgname}"
+ install -d -m755 "${pkgdir}/usr/include"
install -d -m755 "${pkgdir}/usr/share/man"
- make -j1 -f Makefile.unix BINDIR="${pkgdir}/usr/bin" \
- PERL=/usr/bin/perl \
- MANDIR="${pkgdir}/usr/share/man/man1" || return 1
- make -j1 -f Makefile.unix BINDIR="${pkgdir}/usr/bin" \
- PERL=/usr/bin/perl \
- MANDIR="${pkgdir}/usr/share/man/man1" install || return 1
+ make -f Makefile.unix BINDIR="${pkgdir}/usr/bin" \
+ INCLUDEDIR="${pkgdir}/usr/include/psutils" PERL=/usr/bin/perl \
+ MANDIR="${pkgdir}/usr/share/man/man1" install
install -m755 -d "${pkgdir}/usr/share/licenses/${pkgname}"
- install -m644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/" || return 1
- install -m644 LICENSE.orig "${pkgdir}/usr/share/licenses/${pkgname}/" || return 1
+ install -m644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/"
}