3 pkgname="xf86-input-egalax-linux3"
6 pkgdesc="eGalaxTouch touchscreen driver"
7 url="http://home.eeti.com.tw/web20/eGalaxTouchDriver/linuxDriver.htm"
8 license=('custom:EULA')
10 install=('xf86-input-egalax-linux3.install')
12 md5sums=('7d6be35d52b46dd0537869d6ddfe24f9'
13 '634872a577befea4da8228dae82f361f'
14 '4ef63bb423c175f6bf56cc444ccca006')
17 [ "$CARCH" = "x86_64" ] && _architect='64'
19 source=("eGalaxTouch_v${pkgver}.L-x.tar.gz::http://home.eeti.com.tw/web20/drivers/touch_driver/Linux/20111125/eGTouch_v${pkgver}.L-x.tar.gz"
23 depends=('linux>=3.0' 'libpng12' 'gtk3')
24 conflicts=('xf86-input-egalax', 'xf86-input-egalax-beta', 'xf86-input-egalax-xorg18')
25 groups=('xorg-input-drivers')
28 cd $srcdir/eGTouch_v${pkgver}.L-x
30 tar -xzf eGTouch${_architect}.tar.gz || return 1
32 cd eGTouch${_architect}
35 "$pkgdir/etc/X11/xorg.conf.d" \
36 "$pkgdir/usr/share/eGTouch/example" \
37 "$pkgdir/usr/share/applications" \
38 "$pkgdir/usr/share/pixmaps" \
39 "$pkgdir/usr/share/icons/hicolor/48x48/apps" \
40 "$pkgdir/usr/share/licenses/$pkgname" \
41 "$pkgdir/usr/bin" || return 1
43 install -D -m755 eGalaxCalib $pkgdir/usr/bin
44 install -D -m755 eGTouchd $pkgdir/usr/bin
45 install -D -m755 eGTouchd.ini $pkgdir/etc
46 install -D -m644 event.c $pkgdir/usr/share/eGTouch/example
47 install -D -m644 event_multi.c $pkgdir/usr/share/eGTouch/example
48 install -D -m644 readme $pkgdir/usr/share/eGTouch
49 install -D -m644 Rule/52-egalax-virtual.conf $pkgdir/etc/X11/xorg.conf.d
50 install -D -m644 Rule/eGalaxCalib.png $pkgdir/usr/share/pixmaps
51 install -D -m644 Rule/eGalaxCalib.png $pkgdir/usr/share/icons/hicolor/48x48/apps
55 install -D -m644 "EETI_eGTouch_Linux_ Guide_v1.02.pdf" $pkgdir/usr/share/eGTouch
59 install -D -m755 eGalaxCalib.desktop $pkgdir/usr/share/applications
60 install -D -m644 eula.pdf $pkgdir/usr/share/licenses/$pkgname