updated on Wed Jan 25 20:08:56 UTC 2012
[aur-mirror.git] / aseqkey-git / PKGBUILD
blobe3de890421ea03e9f4ab2c75902253faaf8b9cad
1 # Maintainer: Caleb Reach <jtxx000@gmail.com>
2 pkgname=aseqkey-git
3 pkgver=20110615
4 pkgrel=1
5 pkgdesc="simple utility that turns alsa midi notes into x11 key presses"
6 arch=('i686' 'x86_64')
7 url="https://gitorious.org/aseqkey"
8 source=()
9 license=('GPL3')
10 md5sums=()
12 _gitroot="git://gitorious.org/aseqkey/aseqkey.git"
13 _gitname="aseqkey"
15 build() {
16   cd "$srcdir"
17   msg "Connecting to GIT server...."
19   if [ -d $_gitname ] ; then
20     cd $_gitname && git pull origin
21     msg "The local files are updated."
22   else
23     git clone $_gitroot $_gitname
24   fi
26   msg "GIT checkout done or server timeout"
27   msg "Starting make..."
29   rm -rf "$srcdir/$_gitname-build"
30   git clone "$srcdir/$_gitname" "$srcdir/$_gitname-build"
31   cd "$srcdir/$_gitname-build"
33   make
34   install -D aseqkey "$pkgdir"/usr/bin/aseqkey