updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / libmonome-git / PKGBUILD
blob370fb198cb1aa3b09852a2650e6f39bd55c211db
1 pkgname=libmonome-git
2 pkgver=20101112
3 pkgrel=1
4 pkgdesc="Makes writing applications for Monomes easy"
5 arch=('i686')
6 license=('ISC')
7 url=("https://github.com/monome/libmonome")
8 conflicts=('libmonome')
9 provides=('libmonome')
10 depends=('liblo' 'udev')
12 _gitname="libmonome"
13 _gitroot="https://github.com/monome"
15 build() {
16         cd $srcdir
17         msg "Connecting to the GIT server..."
19         if [[ -d $srcdir/$_gitname ]] ; then
20                 cd $_gitname
21                 git pull origin
22                 msg "The local files were updated."
23         else
24                 git clone "$_gitroot/$_gitname.git"
27     msg "GIT checkout done"
28     msg "Starting make..."
30                 git clone $srcdir/$_gitname $srcdir/$_gitname-build
31                 cd $srcdir/$_gitname-build
33                 mkdir $pkgdir/usr
35                 ./configure --prefix=$pkgdir/usr || return 1
36                 make || return 1
37                 make install PKGCONFIGDIR="$pkgdir/usr/lib/pkgconfig"|| return 1
39                 rm -rf $srcdir/$_gitname-build
42