1 # Maintainer: Jozef Riha <jose1711 at gmail dot com>
6 pkgdesc="a utility that allows to call some X11 functions from CLI or shell script"
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")
12 md5sums=('bac527aab86715fcd76f44d9cf970ade'
13 '4e90f8a687a7a9cf0180b5c35c13a2d0')
16 cd ${srcdir}/${pkgname}-${pkgver}.orig
17 for i in ../debian/patches/*patch;
19 patch -p1 < $i || return 1
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
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