summaryrefslogtreecommitdiff
path: root/libre/psutils-libre/PKGBUILD
blob: ce2758d8e9d91db6020e923d1ebf5c969e4792a7 (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
32
33
34
35
36
37
38
39
40
41
42
43
# $Id: PKGBUILD 140791 2011-10-19 10:03:22Z andrea $
# Maintainer: Ronald van Haren <ronald.archlinux.org>
# Contributor: eric <eric@archlinux.org>
# Contributor: Tom Newsom <Jeepster@gmx.co.uk>
# Contributor: xihh <hahj87@gmail.com>

pkgname=psutils-libre
pkgver=1.17
pkgrel=3
arch=('i686' 'x86_64' 'mips64el')
pkgdesc="A set of postscript utilities"
url="http://www.tardis.ed.ac.uk/~ajcd/psutils/index.html"
license=('custom')
depends=('glibc' 'gnu-ghostscript')
provides=('psutils-lprng' 'psutils')
replaces=('psutils-lprng' 'psutils')
conflicts=('psutils-lprng' 'psutils')
options=('!makeflags')
source=(http://www.connochaetos.org/misc/${pkgname}-${pkgver}.tar.gz
        'psutils-1.17.diff')
md5sums=('5553b70be2484cef7a76d741a26f24d5'
         '2b49e9e796000b42f42804d4b50a2be1')

build() {
  cd "${srcdir}/${pkgname}"
  patch -Np1 -i "${srcdir}/psutils-1.17.diff"
  make -f Makefile.unix BINDIR="${pkgdir}/usr/bin" \
    INCLUDEDIR="${pkgdir}/usr/include/psutils" PERL=/usr/bin/perl \
    MANDIR="${pkgdir}/usr/share/man/man1" \
    CFLAGS="$CFLAGS -DPAPER=\\\"letter\\\" -DUNIX -Wall" \
    CCFLAGS="$LDFLAGS"
}

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
  install -m755 -d "${pkgdir}/usr/share/licenses/${pkgname}"
  install -m644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/"
}