updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / tmd-git / PKGBUILD
blob6e3a549904eb16b7e6a0b5ad4e0f388169ba70a4
1 # Maintainer: Ryan Huffman <ryanhuffman(at)gmail(dot)com>
3 pkgname=tmd-git
4 pkgver=20091113
5 pkgrel=1
6 pkgdesc="TUIO Monitor Daemon"
7 arch=('i686' 'x86_64')
8 url="http://rhuffman.wordpress.com/"
9 license=('custom')
10 depends=('xorg-server>=1.7.0' 'libxi>=1.2.1')
11 makedepends=('pkgconfig' 'git' 'xorg-util-macros' 'autoconf' 'automake')
12 conflicts=('xorg-server<1.7.0')
13 options=(!libtool)
14 source=()
15 md5sums=()
17 _gitroot="git://repo.or.cz/tmd.git"
18 _gitname="tmd"
20 build() {
21   cd "$srcdir"
22   msg "Connecting to GIT server...."
24   if [ -d $_gitname ] ; then
25     cd $_gitname && git pull origin
26     msg "The local files are updated."
27   else
28     git clone $_gitroot
29   fi
31   msg "GIT checkout done or server timeout"
32   msg "Starting make..."
34   rm -rf "$srcdir/$_gitname-build"
35   git clone "$srcdir/$_gitname" "$srcdir/$_gitname-build"
36   cd "$srcdir/$_gitname-build"
38   ./autogen.sh
39   ./configure --prefix=/usr || return 1
40   make || return 1
41   make DESTDIR="${pkgdir}" install || return 1
42   install -D -m644 COPYING "${pkgdir}/usr/share/licenses/${pkgname}/COPYING" || return 1
43