1 # Maintainer: Florian Léger <florian dot leger at insa dash rouen dot fr>
6 pkgdesc="ENAC's Linux kernel driver for DiamondTouch."
8 url='http://lii-enac.fr/en/projects/shareit/linux.html'
11 makedepends=('kernel26-headers')
12 install='dt-driver.install'
13 source=("http://lii-enac.fr/en/projects/shareit/${pkgname}.tar.gz"
14 "dt-driver-fix-kmalloc.patch")
15 md5sums=('8432134b072dd8a685fcddba23bc1baa'
16 'f7066f32cdf4fbac6dd5932d7fbe9d81')
19 cd "${srcdir}/${pkgname}-${pkgver}"
20 patch -p2 -i "${srcdir}/${pkgname}-fix-kmalloc.patch" || return 1
22 gzip -c "${srcdir}/${pkgname}-${pkgver}/diamondtouch.ko" > "${srcdir}/${pkgname}-${pkgver}/diamondtouch.ko.gz"
26 install -D -m644 "${srcdir}/${pkgname}-${pkgver}/diamondtouch.ko.gz" "${pkgdir}/lib/modules/$(uname -r)/kernel/drivers/input/touchscreen/diamondtouch.ko.gz" || return 1