updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / fishnpitch-git / PKGBUILD
blob0b8876c2eacab2e98895682a62d2fdf6a62e8066
1 # Contributor: Robert Schwarz <mail@rschwarz.net>
2 pkgname=fishnpitch-git
3 pkgver=20100128
4 pkgrel=1
5 pkgdesc="a JACK MIDI real-time tuner"
6 arch=('i686' 'x86_64')
7 url="http://rschwarz.net/fishnpitch.htm"
8 license=('GPL3')
9 depends=('jack-audio-connection-kit')
10 makedepends=('jack-audio-connection-kit')
11 provides=(fishnpitch)
12 conflicts=(fishnpitch)
13 source=()
14 md5sums=() #generate with 'makepkg -g'
16 _gitroot="git://github.com/leethargo/fishnpitch.git"
17 _gitname="fishnpitch"
19 build() {
20   cd "$srcdir"
21   msg "Connecting to GIT server...."
23   if [ -d $_gitname ] ; then
24     cd $_gitname && git pull origin
25     msg "The local files are updated."
26   else
27     git clone $_gitroot
28   fi
30   msg "GIT checkout done or server timeout"
31   msg "Starting make..."
33   rm -rf "$srcdir/$_gitname-build"
34   cp -r "$srcdir/$_gitname" "$srcdir/$_gitname-build"
35   cd "$srcdir/$_gitname-build"
37   #
38   # BUILD HERE
39   #
41   make || return 1
42   mkdir ${pkgdir}/bin
43   cp fishnpitch ${pkgdir}/bin
44