updated on Mon Jan 23 12:00:23 UTC 2012
[aur-mirror.git] / xwit / PKGBUILD
blob24c8583dac07793a464d06312c57a7eeb815d7aa
1 # Maintainer: Jozef Riha <jose1711 at gmail dot com>
3 pkgname=xwit
4 pkgver=3.4
5 pkgrel=2
6 pkgdesc="a utility that allows to call some X11 functions from CLI or shell script"
7 arch=('i686')
8 url="http://packages.debian.org/unstable/x11/xwit"
9 source=("http://ftp.de.debian.org/debian/pool/main/x/${pkgname}/${pkgname}_${pkgver}.orig.tar.gz" "http://ftp.de.debian.org/debian/pool/main/x/${pkgname}/${pkgname}_${pkgver}-13.debian.tar.gz")
10 license=('other')
11 depends=('libx11')
12 md5sums=('bac527aab86715fcd76f44d9cf970ade'
13          '4e90f8a687a7a9cf0180b5c35c13a2d0')
15 build() {
16         cd ${srcdir}/${pkgname}-${pkgver}.orig
17         for i in ../debian/patches/*patch;
18                 do
19                 patch -p1 < $i || return 1
20                 done
21         gcc  -Wall -O2 -g -Wstrict-prototypes -Wmissing-prototypes -c -o xwit.o xwit.c
22         gcc  -Wall -O2 -g -Wstrict-prototypes -Wmissing-prototypes -c -o ClientWin.o ClientWin.c
23         gcc  -Wall -O2 -g -Wstrict-prototypes -Wmissing-prototypes -c -o dsimple.o dsimple.c
24         gcc -Wall -O2 -g -Wstrict-prototypes -Wmissing-prototypes -Wl,-z,defs -lX11 -o xwit xwit.o ClientWin.o dsimple.o
27 package() {
28         cd ${srcdir}/${pkgname}-${pkgver}.orig
29         install -D -m644 xwit.man ${pkgdir}/usr/share/man/man1/xwit.1
30         install -D -m755 xwit ${pkgdir}/usr/bin/xwit