Files
extra/psutils/PKGBUILD
2025-06-22 20:39:04 -05:00

30 lines
844 B
Bash

# Maintainer: Jesus E. <heckyel@riseup.net>
pkgname=psutils
pkgver=2.05
pkgrel=1
arch=('any')
pkgdesc='A set of postscript utilities'
url='https://github.com/rrthomas/psutils'
license=('GPL-3')
depends=('glibc' 'ghostscript' 'perl' 'perl-ipc-run3' 'libpaper')
options=('!makeflags')
source=("https://github.com/rrthomas/psutils/releases/download/v${pkgver}/${pkgname}-${pkgver}.tar.gz")
sha512sums=('6d32653af67466daaae8b640e047ea19f07fa678b2a416fc82b3c83b9961ea6a3f298ec84154033e4ab0cca990d63c44f286eaedb6df6a5022a985491b8c18b0')
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
install -Dm644 COPYING -t "${pkgdir}/usr/share/licenses/$pkgname"
}