updated on Wed Jan 25 00:20:47 UTC 2012
[aur-mirror.git] / dt-driver / PKGBUILD
blobf88c0f8dcff4ed80f00760d1a542e7e097c75a16
1 # Maintainer: Florian Léger <florian dot leger at insa dash rouen dot fr>
3 pkgname=dt-driver
4 pkgver=1.1
5 pkgrel=3
6 pkgdesc="ENAC's Linux kernel driver for DiamondTouch."
7 arch=('i686' 'x86_64')
8 url='http://lii-enac.fr/en/projects/shareit/linux.html'
9 license=('GPL')
10 depends=('kernel26')
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')
18 build() {
19   cd "${srcdir}/${pkgname}-${pkgver}"
20   patch -p2 -i "${srcdir}/${pkgname}-fix-kmalloc.patch" || return 1
21   make || return 1
22   gzip -c "${srcdir}/${pkgname}-${pkgver}/diamondtouch.ko" > "${srcdir}/${pkgname}-${pkgver}/diamondtouch.ko.gz"
25 package() {
26   install -D -m644 "${srcdir}/${pkgname}-${pkgver}/diamondtouch.ko.gz" "${pkgdir}/lib/modules/$(uname -r)/kernel/drivers/input/touchscreen/diamondtouch.ko.gz" || return 1