updated on Tue Jan 10 04:01:21 UTC 2012
[aur-mirror.git] / xf86-input-evdev-ubuntu / PKGBUILD
blobd0e0651195b1953a8f6b35b18f04e52ef1283038
1 # Maintainer: Xiao-Long Chen <chenxiaolong@cxl.epac.to>
3 pkgname=xf86-input-evdev-ubuntu
4 _ubuntu_ver=1ubuntu13
5 pkgver=2.6.0.${_ubuntu_ver}
6 pkgrel=100
7 pkgdesc="X.org evdev input driver"
8 arch=('i686' 'x86_64')
9 url="http://xorg.freedesktop.org/"
10 license=('custom')
11 depends=('glibc' 'xorg-server-ubuntu' 'mtdev')
12 makedepends=('xorg-server-devel-ubuntu')
13 provides=('xf86-input-evdev')
14 conflicts=('xorg-server<1.10.0' 'xf86-input-evdev')
15 options=('!libtool' '!makeflags')
16 groups=('xorg-drivers' 'xorg')
17 source=("${url}/releases/individual/driver/${pkgname%-*}-${pkgver%.*}.tar.bz2"
18         "http://archive.ubuntu.com/ubuntu/pool/main/x/xserver-xorg-input-evdev/xserver-xorg-input-evdev_${pkgver%.*}-${_ubuntu_ver}.diff.gz")
19 sha512sums=('c5ff503d6bde7e5690333867595d54ddd5403e6d8f556b09a631bcb65629aa82f55c694f5257d925541cbe86cc47a9464a3c21b9ff62fda8b4bf0118c92637c5'
20             'e15a8fa85263eef40e7bcc0b6a2e8a14fbdd0174a8083fdac8269f5c8c893cf3d8f005d834c60246a26d35a7c6e5372e3c1de86edc434373762c9180869d2673')
22 build() {
23   cd "${srcdir}/${pkgname%-*}-${pkgver%.*}"
25   patch -Np1 -i "${srcdir}/xserver-xorg-input-evdev_${pkgver%.*}-${_ubuntu_ver}.diff"
27   #Apply all patches
28   for i in $(cat 'debian/patches/series' | grep -v '#'); do
29     patch -Np1 -i "debian/patches/${i}"
30   done
32   chmod +x autogen.sh
33   ./autogen.sh --prefix=/usr
34   make
37 package() {
38   cd "${srcdir}/${pkgname%-*}-${pkgver%.*}"
39   make DESTDIR="${pkgdir}" install
40   install -m755 -d "${pkgdir}/usr/share/licenses/${pkgname%-*}"
41   install -m644 COPYING "${pkgdir}/usr/share/licenses/${pkgname%-*}/"
42   install -m755 -d "${pkgdir}/etc/X11/xorg.conf.d"
43   install -m644 'debian/local/11-evdev-quirks.conf' "${pkgdir}/etc/X11/xorg.conf.d/"
44   install -m644 'debian/local/11-evdev-trackpoint.conf' "${pkgdir}/etc/X11/xorg.conf.d/"