updated on Tue Jan 17 00:10:10 UTC 2012
[aur-mirror.git] / twofing-wetab / PKGBUILD
blob8b4543795ade054151f6d75729eb600f9e76e4d5
1 # Contributors: Evilandi666 <evilandi.aur(at)googlemail.com>
3 pkgname=twofing-wetab
4 pkgver=0.0.7
5 pkgrel=1
6 pkgdesc="twofing is a daemon which runs in the background and recognizes two-finger gestures performed on a touchscreen and converts them into mouse and keyboard events. This is the edition with patched udev rules for the WeTab/ExoPC."
7 arch=('i686' 'x86_64')
8 url="http://philmerk.de/arbeit/useful_twofing.htm"
9 depends=('udev' 'libxtst' 'libxrandr')
10 makedepends=('sed' 'libxi' 'inputproto')
11 options=()
12 license=('custom')
13 source=('https://help.ubuntu.com/community/T101MT?action=AttachFile&do=get&target=twofing-0.0.7.tar.gz')
14 sha1sums=('d2d8722025352007a46a139b7ce469d1aa146b90')
16 build() {
17   cd "${srcdir}/twofing-${pkgver}"
18   sed 's/480d/72a1/g' -i 70-touchscreen-egalax.rules
19   make
21 package() {
22   cd "${srcdir}/twofing-${pkgver}"
23   mkdir -p ${pkgdir}/usr/bin
24   sed 's/cp 70-touchscreen-egalax.rules \/etc\/udev\/rules.d\///g' -i Makefile
25   make DESTDIR="${pkgdir}" install
26   mkdir -p ${pkgdir}/etc/udev/rules.d/
27   install -m644 70-touchscreen-egalax.rules "${pkgdir}/etc/udev/rules.d/"
28   mkdir -p "${pkgdir}/usr/share/licenses/${pkgname}"
29   cat twofingemu.c | head -n 15 > "${pkgdir}/usr/share/licenses/${pkgname}/COPYING"