updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / twofing-git / PKGBUILD
blob44cceabec330d521503077f8879a33daa081d6c2
1 # Contributors: flareguner <flareguner(at)gmail.com>
3 pkgname=twofing-git
4 pkgver=0.0.9999
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 original edition with udev rules for Eee Pc T101MT"
7 arch=('i686' 'x86_64')
8 url="http://philmerk.de/arbeit/useful_twofing.htm"
9 depends=('git' 'udev' 'libxtst' 'libxrandr')
10 makedepends=('sed' 'libxi' 'inputproto')
11 options=()
12 license=('custom')
13 source=()
14 #sha1sums=('d2d8722025352007a46a139b7ce469d1aa146b90')
17 _giturl='https://github.com/Plippo/twofing.git'
21 build() {
24         cd "${srcdir}"
25         
26         git clone ${_giturl} ${pkgname} 
27         
28         cd "${srcdir}/${pkgname}"
29         make
31 package() {
32         cd "${srcdir}/${pkgname}"
33         mkdir -p ${pkgdir}/usr/bin
34         mkdir -p ${pkgdir}/etc/udev/rules.d/
35         mkdir -p "${pkgdir}/usr/share/licenses/${pkgname}"
37         echo "SUBSYSTEMS=="usb",ACTION=="add",KERNEL=="event*",SYSFS{idProduct}=="0186",SYMLINK+="twofingtouch",RUN+="/bin/chmod a+r /dev/twofingtouch"" > "${srcdir}/70-touchscreen-egalax.rules"
38         
39         make DESTDIR="${pkgdir}" install
40         install -m644 70-touchscreen-egalax.rules "${pkgdir}/etc/udev/rules.d/"
41         cat twofingemu.c | head -n 15 > "${pkgdir}/usr/share/licenses/${pkgname}/COPYING"