summaryrefslogtreecommitdiff
path: root/libre/psutils-libre/PKGBUILD
blob: 6ed3b7f600141b114f93b4b2d8d5b45ecdd212cd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
# Maintainer: Henry Jensen <hjensen@connochaetos.org>
# Contributor: Tom Newsom <Jeepster@gmx.co.uk>
# Contributor: xihh <hahj87@gmail.com>

pkgname=psutils-libre
pkgver=1.17
pkgrel=1
pkgdesc="A set of postscript utilities"
arch=(i686 x86_64)
license=('custom')
depends=('glibc' 'ghostscript')
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')

build() {
  cd "${srcdir}/${pkgname}"
  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
  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
}