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