updated on Sat Jan 21 04:00:54 UTC 2012
[aur-mirror.git] / xorg-xinput-ubuntu / PKGBUILD
bloba377ca8356b978f4092dfe0b3ada18f40edf2d8d
1 # Maintainer: Xiao-Long Chen <chenxiaolong@cxl.epac.to>
2 # Original Maintainer: Jan de Groot <jgc@archlinux.org>
4 pkgname=xorg-xinput-ubuntu
5 _ubuntu_ver=2ubuntu1
6 pkgver=1.5.3.${_ubuntu_ver}
7 pkgrel=100
8 pkgdesc="Small commandline tool to configure devices with Ubuntu's patches"
9 arch=('i686' 'x86_64')
10 url="http://xorg.freedesktop.org/"
11 license=('custom')
12 depends=('libx11' 'libxi-ubuntu')
13 makedepends=('xorg-util-macros' 'inputproto-ubuntu')
14 groups=('xorg-apps' 'xorg')
15 provides=("xorg-xinput=${pkgver}")
16 conflicts=('xorg-xinput')
17 source=("http://xorg.freedesktop.org/archive/individual/app/xinput-${pkgver%.*}.tar.bz2"
18         "http://archive.ubuntu.com/ubuntu/pool/main/x/xinput/xinput_${pkgver%.*}-${_ubuntu_ver}.debian.tar.gz")
19 sha512sums=('b6f389d5b1fe63de006d90da54824628be9407bf961ffa33ccc2f4080c7aed6e7c8dfe01b7289d6077d80b3d565d2cf9fa60578cc51793135e66e7066606b4b7'
20             'b9805f50153442df2f53b63e713d49a38733a82f412a250443bf8f9a9d87e781773a735112f55d3454d7f6624914dae2db358b9b330d24e848f73d8228d86998')
22 build() {
23   cd "${srcdir}/xinput-${pkgver%.*}"
25   #Apply Ubuntu patches
26   for i in $(cat "${srcdir}/debian/patches/series" | grep -v '#'); do
27     patch -Np1 -i "${srcdir}/debian/patches/${i}"
28   done
30   ./configure --prefix=/usr
31   make
34 package() {
35   cd "${srcdir}/xinput-${pkgver%.*}"
36   make DESTDIR="${pkgdir}" install
37   install -m755 -d "${pkgdir}/usr/share/licenses/${pkgname%-*}"
38   install -m644 COPYING "${pkgdir}/usr/share/licenses/${pkgname%-*}/"