updated on Sat Jan 14 12:12:45 UTC 2012
[aur-mirror.git] / xf86-input-egalax / PKGBUILD
blob6606c70fe2149fa10a1cfcaddd3ec7474170a6ac
1 # Maintainer: neolith2099
3 pkgname="xf86-input-egalax"
4 pkgver="3.02.4315"
5 pkgrel=1
6 pkgdesc="eGalaxTouch touchscreen driver"
7 url="http://home.eeti.com.tw/web20/eGalaxTouchDriver/linuxDriver.htm"
8 license=('custom:EULA')
9 arch=('i686' 'x86_64')
10 install=('xf86-input-egalax.install')
12 md5sums=(
13     '5b85883540a4b13389a04fe2fd10cd2c'  
16 _architect='32'
17 [ "$CARCH" = "x86_64" ] && _architect='64'
18 [ "$CARCH" = "x86_64" ] && md5sums[0]='420c9c5dc613644fae468d365674d3ed'
20 source=("eGalaxTouch-${pkgver}-${_architect}b-k26.tar.gz::http://home.eeti.com.tw/web20/drivers/touch_driver/Linux/20100413/eGalaxTouch-${pkgver}-${_architect}b-k26.tar.gz")
22 depends=('xorg-server>=1.8' 'libpng12')
23 provides=('egalax')
24 conflicts=()
25 groups=('xorg-input-drivers')
27 build() {
28     cd $srcdir/eGalaxTouch${_architect}
30     tar -xzf eGalaxTouch.tar.gz || return 1
32     cd eGalaxTouch${_architect}
34     mkdir -p \
35         "$pkgdir/usr/lib/xorg/modules/input" \
36         "$pkgdir/usr/bin" \
37         "$pkgdir/usr/share/licenses/$pkgname/" || return 1
39     install -D -m755 Module/x18/egalax_drv.so $pkgdir/usr/lib/xorg/modules/input
40     install -D -m755 eGalaxTouch $pkgdir/usr/bin
41     install -D -m755 TKCal/TKCal $pkgdir/usr/bin
42     install -D -m644 eula.pdf $pkgdir/usr/share/licenses/$pkgname