diff options
Diffstat (limited to 'libre/psutils-libre/PKGBUILD')
-rw-r--r-- | libre/psutils-libre/PKGBUILD | 42 |
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}/" } |