summaryrefslogtreecommitdiff
path: root/community/cupsddk/PKGBUILD
blob: 7c39b38da7294c694c26703e1b8055f0336f0dc4 (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
44
45
46
47
# Maintainer: Georg Grabler (STiAT) <ggrabler@gmail.com>
# Contributor: Georg Grabler (STiAT) <ggrabler@gmail.com>

pkgname=cupsddk
pkgver=1.2.3
pkgrel=3
pkgdesc="CUPSD Development Kit"
url="http://cups.org"
license="GPL"
depends=('libcups')
makedepends=('libcups')
arch=('i686' 'x86_64')
options=('!emptydirs')
source=(http://ftp.easysw.com/pub/cupsddk/$pkgver/$pkgname-$pkgver-source.tar.bz2)
md5sums=('3ec52813bf12bf9b34d34f8a81bab508')

build() {
  cd $startdir/src/$pkgname-$pkgver

  ./configure --prefix=/usr
  make || return 1
  make bindir=$startdir/pkg/usr/bin \
       datadir=$startdir/pkg/usr/share \
       docdir=$startdir/pkg/usr/share/cupsddk \
       mandir=$startdir/pkg/usr/share/man \
       prefix=$startdir/pkg/usr \
       CUPS_DATADIR=$startdir/pkg/`cups-config --datadir` \
       CUPS_SERVERBIN=$startdir/pkg/`cups-config --serverbin` \
       install || return 1

  rm -f $pkgdir/usr/include/cups/driver.h
  rm -f $pkgdir/usr/bin/ppdc
  rm -f $pkgdir/usr/bin/ppdhtml
  rm -f $pkgdir/usr/bin/ppdi
  rm -f $pkgdir/usr/bin/ppdmerge
  rm -f $pkgdir/usr/bin/ppdpo
  rm -f $pkgdir/usr/lib/cups/filter/commandtoescpx
  rm -f $pkgdir/usr/lib/cups/filter/commandtopclx
  rm -f $pkgdir/usr/lib/cups/filter/rastertoescpx
  rm -f $pkgdir/usr/lib/cups/filter/rastertopclx
  rm -f $pkgdir/usr/share/man/man1/ppdc.1.gz
  rm -f $pkgdir/usr/share/man/man1/ppdhtml.1.gz
  rm -f $pkgdir/usr/share/man/man1/ppdi.1.gz
  rm -f $pkgdir/usr/share/man/man1/ppdmerge.1.gz
  rm -f $pkgdir/usr/share/man/man1/ppdpo.1.gz
  rm -f $pkgdir/usr/share/man/man5/ppdcfile.5.gz
}