summaryrefslogtreecommitdiff
path: root/community/cupsddk/PKGBUILD
blob: 33d220f28e30504f03df2524430049407abcb1ab (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
48
49
50
51
# $Id: PKGBUILD 65096 2012-02-20 03:38:12Z spupykin $
# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
# Maintainer: Georg Grabler (STiAT) <ggrabler@gmail.com>
# Contributor: Georg Grabler (STiAT) <ggrabler@gmail.com>

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

build() {
  cd $srcdir/$pkgname-$pkgver

  ./configure --prefix=/usr
  sed -i '1,1i#include <cups/ppd.h>' ppdc/ppdmerge.cxx
  sed -i 's|mkdir images|mkdir -p images|' cups/Makefile*
  make
  make bindir=$pkgdir/usr/bin \
       datadir=$pkgdir/usr/share \
       docdir=$pkgdir/usr/share/cupsddk \
       mandir=$pkgdir/usr/share/man \
       prefix=$pkgdir/usr \
       CUPS_DATADIR=$pkgdir/`cups-config --datadir` \
       CUPS_SERVERBIN=$pkgdir/`cups-config --serverbin` \
       install

  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
}