summaryrefslogtreecommitdiff
path: root/community/cupsddk/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'community/cupsddk/PKGBUILD')
-rw-r--r--community/cupsddk/PKGBUILD47
1 files changed, 47 insertions, 0 deletions
diff --git a/community/cupsddk/PKGBUILD b/community/cupsddk/PKGBUILD
new file mode 100644
index 000000000..7c39b38da
--- /dev/null
+++ b/community/cupsddk/PKGBUILD
@@ -0,0 +1,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
+}