updated on Sat Jan 14 12:12:45 UTC 2012
[aur-mirror.git] / serialosc-git / PKGBUILD
blobf6b74ebb1087281d59d33227cce3194b6294adf3
1 pkgname=serialosc-git
2 pkgver=20101112
3 pkgrel=1
4 pkgdesc="serialosc is an osc router for yr monome"
5 arch=('i686' 'x86_64')
6 license=('ISC')
7 url=("https://github.com/monome/serialosc")
8 depends=('libmonome')
9 conflicts=('serialosc')
10 provides=('serialosc')
12 _gitname="serialosc"
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