1 # Maintainer: Xiao-Long Chen <chenxiaolong@cxl.epac.to>
3 pkgname=xf86-input-evdev-ubuntu
5 pkgver=2.6.0.${_ubuntu_ver}
7 pkgdesc="X.org evdev input driver"
9 url="http://xorg.freedesktop.org/"
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')
23 cd "${srcdir}/${pkgname%-*}-${pkgver%.*}"
25 patch -Np1 -i "${srcdir}/xserver-xorg-input-evdev_${pkgver%.*}-${_ubuntu_ver}.diff"
28 for i in $(cat 'debian/patches/series' | grep -v '#'); do
29 patch -Np1 -i "debian/patches/${i}"
33 ./autogen.sh --prefix=/usr
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/"