# Maintainer: Ronald van Haren <ronald.archlinux.org>
# Contributor: eric <eric@archlinux.org>
# Contributor: Tom Newsom <Jeepster@gmx.co.uk>
 
pkgname=psutils
pkgver=2.09
pkgrel=1
arch=('any')
pkgdesc="A set of postscript utilities"
url="https://github.com/rrthomas/psutils"
license=('GPL3')
depends=('glibc' 'ghostscript' 'perl' 'perl-ipc-run3' 'paper')
options=('!makeflags')
source=("https://github.com/rrthomas/psutils/releases/download/v${pkgver}/${pkgname}-${pkgver}.tar.gz")
sha256sums=('e31ab570e24478ce777b63b300ff428aedc916131cd7b077094311761604b7da')

build() {
  cd ${pkgname}-${pkgver}
  
  export CFLAGS="$CFLAGS -DPAPER=\\\"letter\\\" -DUNIX -Wall" \
  export CCFLAGS="$LDFLAGS"

  ./configure --prefix=/usr
  make
}

package() {
  cd ${pkgname}-${pkgver}
  make DESTDIR="${pkgdir}" install
}
