updated on Tue Jan 10 04:01:21 UTC 2012
[aur-mirror.git] / pmgmusic-git / PKGBUILD
blobff60fb9dc8219c040f42d883ff49822af4108da6
1 # Maintainer: Felix Yan <felixonmars@gmail.com>
3 pkgname=pmgmusic-git
4 pkgver=20120107
5 pkgrel=1
6 pkgdesc="PMG - a VOS clone for linux - Git version"
7 arch=('i686' 'x86_64')
8 url="https://github.com/felixonmars/pmgmusic"
9 license=('GPL')
10 depends=("timidity++" "alsa-lib" "gtk2" "glib2" "libglade")
11 source=()
12 md5sums=()
14 _gitroot="git://github.com/felixonmars/pmgmusic.git"
15 _gitname="pmgmusic"
17 build() {
18   cd "$srcdir"
19   msg "Connecting to GIT server...."
21   if [ -d $_gitname ] ; then
22     cd "$_gitname" && git pull origin
23     msg "The local files are updated."
24     cd ..
25   else
26     git clone $_gitroot
27   fi
28   
29   rm -rf "$srcdir/$_gitname-build"
30   cp -r "$srcdir/$_gitname" "$srcdir/$_gitname-build"
31   cd "$srcdir/$_gitname-build"
32   
33   msg "GIT checkout done or server timeout"
34   msg "Starting make..."
36   make
39 package() {
40   cd "$srcdir/$_gitname-build"
42   install -Dm755 pmg $pkgdir/usr/bin/pmg
43   install -Dm755 dump_vos $pkgdir/usr/bin/dump_vos