updated on Wed Jan 25 16:08:47 UTC 2012
[aur-mirror.git] / xf86-input-idcwrapper-git / PKGBUILD
blobfd4d94833e61ae04e9c83f7ce54b546c3ec3b4b0
1 # Maintainer: Éverton Ribeiro <nuxlli@gmail.com>
3 pkgname=xf86-input-idcwrapper-git
4 pkgver=0.0.1
5 pkgrel=1
6 pkgdesc="X.org warapper for input driver idctouch"
7 arch=(i686 x86_64)
8 _github="github.com/nuxlli/xf86-input-idcwrapper"
9 url="http://${_github}"
10 depends=('glibc xorg-server>=1.5.2')
11 makedepends=('pkgconfig' 'xorg-server>=1.5.2' 'randrproto>=1.2.1' 'git')
12 options=('!libtool')
13 groups=('xorg-input-drivers')
14 license=('GPL')
15 source=()
16 md5sums=()
18 _gitname="xf86-input-idcwrapper"
19 _gitroot="git://${_github}.git"
21 build() {
22     cd ${startdir}/src
23     msg "Connecting to ${_gitroot} GIT server...."
24     if [[ -d ${startdir}/src/${_gitname} ]] ; then
25         cd ${_gitname}
26         git pull origin || return 1
27         msg "The local files are updated."
28     else
29         git clone ${_gitroot} || return 1
30     fi
31     msg "GIT checkout done"
32     msg "Starting make..."
33     cd "${startdir}/src/${_gitname}"
34     ./autogen.sh --prefix=/usr || return 1
35     make || return 1
36     make DESTDIR="${pkgdir}" install || return 1