summaryrefslogtreecommitdiff
path: root/community/cupsddk
diff options
context:
space:
mode:
authorroot <root@rshg054.dnsready.net>2011-11-23 23:15:26 +0000
committerroot <root@rshg054.dnsready.net>2011-11-23 23:15:26 +0000
commit1e1e4927b05d9b242bfe83794e3a98ab2c8f79ef (patch)
tree070846cb6770ab17d394d88c3f0cd3ad3eb89842 /community/cupsddk
parent851ab9aa99e9bda38f88b5f5ade096c9137e11c8 (diff)
Wed Nov 23 23:15:26 UTC 2011
Diffstat (limited to 'community/cupsddk')
-rw-r--r--community/cupsddk/PKGBUILD28
1 files changed, 16 insertions, 12 deletions
diff --git a/community/cupsddk/PKGBUILD b/community/cupsddk/PKGBUILD
index 7c39b38da..3eb2dfc7a 100644
--- a/community/cupsddk/PKGBUILD
+++ b/community/cupsddk/PKGBUILD
@@ -1,3 +1,5 @@
+# $Id: PKGBUILD 59197 2011-11-21 14:56:56Z spupykin $
+# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
# Maintainer: Georg Grabler (STiAT) <ggrabler@gmail.com>
# Contributor: Georg Grabler (STiAT) <ggrabler@gmail.com>
@@ -6,27 +8,29 @@ pkgver=1.2.3
pkgrel=3
pkgdesc="CUPSD Development Kit"
url="http://cups.org"
-license="GPL"
+license=("GPL")
depends=('libcups')
-makedepends=('libcups')
+makedepends=('libcups' 'cups')
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
+ cd $srcdir/$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
+ 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