updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / xtrans-git / PKGBUILD
blob391e7676e932776ceca90f0f43d862fac32415fc
1 #Maintainer: ilikenwf / Matt Parnell <parwok@gmail.com>
3 pkgname=xtrans-git
4 pkgver=20080807
5 pkgrel=1
6 pkgdesc="X transport library"
7 arch=(i686 x86_64)
8 license=('custom')
9 url="http://xorg.freedesktop.org/"
10 source=()
11 md5sums=()
13 provides=('xtrans' 'xtrans-git')
14 conflicts=('xtrans')
15 replaces=('xtrans')
18 _gitroot="git://anongit.freedesktop.org/git/xorg/lib/libxtrans"
19 _gitname="libxtrans"
21 build() {
23  msg "Connecting to git.freedesktop.org GIT server...."
25   if [ -d $startdir/src/$_gitname ] ; then
26   cd $_gitname && git pull origin
27   msg "The local files are updated."
28   else
29   git clone $_gitroot
30   fi
32   msg "GIT checkout done or server timeout"
33   msg "Starting make..."
35     cd $startdir/src/$_gitname
36     
37   sh autogen.sh --prefix=/usr || return 1
38   make || return 1
39   make DESTDIR=${startdir}/pkg install || return 1
40   install -m755 -d ${startdir}/pkg/usr/share/licenses/${pkgname}
41   install -m644 COPYING ${startdir}/pkg/usr/share/licenses/${pkgname}/ || return 1