Date: Thursday, October 10, 2019 @ 15:25:48 Author: ronald Revision: 364577
upgpkg: psutils 1.90-1 change to a maintained upstream; update to 1.90 Modified: psutils/trunk/PKGBUILD ----------+ PKGBUILD | 39 ++++++++++++++++++--------------------- 1 file changed, 18 insertions(+), 21 deletions(-) Modified: PKGBUILD =================================================================== --- PKGBUILD 2019-10-10 15:10:34 UTC (rev 364576) +++ PKGBUILD 2019-10-10 15:25:48 UTC (rev 364577) @@ -3,38 +3,35 @@ # Contributor: Tom Newsom <jeeps...@gmx.co.uk> pkgname=psutils -pkgver=1.17 -pkgrel=6 +pkgver=1.90 +pkgrel=1 arch=('x86_64') pkgdesc="A set of postscript utilities" -url="http://knackered.org/angus/psutils/" +url="https://github.com/rrthomas/psutils" license=('custom') depends=('glibc' 'ghostscript') provides=('psutils-lprng') replaces=('psutils-lprng') options=('!makeflags') -source=("https://sources.archlinux.org/other/psutils/${pkgname}-${pkgver}.tar.gz" - 'psutils-1.17.diff') -sha512sums=('91feff88c885173ab1c4ba6b5ffd0d9e90bfa6105479b074065584fc2a87e78fbe71e4bc90d2e7079d86b467caf092b6744b0ea4234880ba78cad8dd7820de77' - '795f45c6315e3c02485d1d5243c1541992b669539257249a185f57136e623c489a9f3635d3f171f698428aeb9710332cf36bb0aa0ade8ea351514044630f12f0') +source=("https://github.com/rrthomas/psutils/releases/download/v${pkgver}/${pkgname}-${pkgver}.tar.gz") +sha256sums=('6685035adacc7c5dbbae8ca95abce03e4535164fd5e661d5393e00a7b8cc1fad') build() { - cd "${srcdir}/${pkgname}" - patch -Np1 -i "${srcdir}/psutils-1.17.diff" - make -f Makefile.unix BINDIR=/usr/bin \ - INCLUDEDIR=/usr/include/psutils PERL=/usr/bin/perl \ - MANDIR=/usr/share/man/man1 \ - CFLAGS="$CFLAGS -DPAPER=\\\"letter\\\" -DUNIX -Wall" \ - CCFLAGS="$LDFLAGS" + cd "${srcdir}/${pkgname}-${pkgver}" + + export CFLAGS="$CFLAGS -DPAPER=\\\"letter\\\" -DUNIX -Wall" \ + export CCFLAGS="$LDFLAGS" + + ./configure --prefix=/usr \ + + make } package() { - cd "${srcdir}/${pkgname}" - install -d -m755 "${pkgdir}/usr/include" - install -d -m755 "${pkgdir}/usr/share/man" - make -f Makefile.unix BINDIR="${pkgdir}/usr/bin" \ - INCLUDEDIR="${pkgdir}/usr/include/psutils" PERL=/usr/bin/perl \ - MANDIR="${pkgdir}/usr/share/man/man1" install + cd "${srcdir}/${pkgname}-${pkgver}" + make DESTDIR=${pkgdir} install + + # install license install -m755 -d "${pkgdir}/usr/share/licenses/${pkgname}" - install -m644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/" + install -m644 COPYING "${pkgdir}/usr/share/licenses/${pkgname}/" }