1 # Maintainer: Andreas B. Wagner <AndreasBWagner@pointfree.net>
2 # Contributor: Simo Leone <neotuli@gmail.com>
6 pkgdesc="X Printing Panel"
8 url="http://cups.sourceforge.net/xpp"
10 depends=('cups>=1.1.9' 'fltk>=1.0.7')
12 source=("http://kent.dl.sourceforge.net/project/cups/$pkgname/$pkgver/$pkgname-$pkgver.tar.gz" 'xpp-1.5.patch' 'fltk-1.3_fix.patch')
15 cd $srcdir/$pkgname-$pkgver
16 patch < ../../xpp-1.5.patch
17 patch < ../../fltk-1.3_fix.patch
19 # libcups 1.5.0 compatibility fix -- as in gtklp PKGINFO
20 sed -i "30i#include <cups/ppd.h>" $pkgname.h
22 # because of compile error: cupshelper.cxx:155:58: error: ‘sprintf’ was not declared in this scope
23 sed -i "38i#include <stdio.h>" cupshelper.cxx
26 ./configure --prefix=/usr
27 make DESTDIR=$pkgdir/ install || return 1
30 md5sums=('775fd69c464515da0c3295d04d0c747f'
31 '924bf76fb414a328a6e7d64549b26ef0'
32 '20dffc33ed8ccb0b517d42b2699977f6')