updated on Wed Jan 18 08:00:29 UTC 2012
[aur-mirror.git] / gtklp / PKGBUILD
blobfe52d0da3ca2c2a65db1ff77104570feb5d40860
1 # Maintainer: SpepS <dreamspepser at yahoo dot it>
2 # Contributor: Alexander Fehr <pizzapunk gmail com>
4 pkgname=gtklp
5 pkgver=1.2.8
6 pkgrel=5
7 pkgdesc="Tools to use and administrate CUPS"
8 arch=('i686' 'x86_64')
9 url="http://gtklp.sourceforge.net/"
10 license=('GPL')
11 depends=('gtk2')
12 install="$pkgname.install"
13 source=("http://downloads.sourceforge.net/$pkgname/$pkgname-$pkgver.src.tar.gz"
14         "$pkgname.desktop"
15         "${pkgname}q.desktop")
16 md5sums=('65c7089140b5f8e2a0b282b3083b78ae'
17          '673bbc897e557f90777c6fad3a5b1071'
18          'c4b73e5d3fe725bfd09dda0efbca95f0')
20 build() {
21   cd "$srcdir/$pkgname-$pkgver"
23   # libcups 1.5.0 compatibility fix
24   sed -i "30i#include <cups/ppd.h>" $pkgname/$pkgname.h
26   ./configure --prefix=/usr
27   make FORTE_LDFLAGS="$LDFLAGS -lX11"
30 package() {
31   cd "$srcdir/$pkgname-$pkgver"
33   make DESTDIR="$pkgdir/" install
35   # desktop file
36   install -d "$pkgdir/usr/share/applications"
37   install -Dm644 ../*.desktop "$pkgdir/usr/share/applications"