#!/usr/bin/bash
# JOBoRun		: Jwm OpenBox Obarun RUNit
# Maintainer	: Joe Bo Run <joborun@disroot.org>
# PkgSource		: url="https://gittea.disroot.org/joborun-pkg/jobextra/$pkgname"
# Website		: https://pozol.eu
#-----------------------------------------| DESCRIPTION |---------------------------------------
 
pkgname=psutils
pkgver=2.09
pkgrel=01
arch=('any')
pkgdesc="A set of postscript utilities"
url="https://github.com/rrthomas/psutils"
depends=('glibc' 'ghostscript' 'perl' 'perl-ipc-run3' 'paper')
options=('!makeflags')
source=("https://github.com/rrthomas/psutils/releases/download/v${pkgver}/${pkgname}-${pkgver}.tar.gz")

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
}

#---- license gpg-key sha256sums ----

license=('GPL3') 

sha256sums=(e31ab570e24478ce777b63b300ff428aedc916131cd7b077094311761604b7da) # psutils-2.09.tar.gz
