updated on Wed Jan 25 08:34:36 UTC 2012
[aur-mirror.git] / laborejo-git / PKGBUILD
blob246ba6d31e1fa0244e746850b70b969ea7b6f7d0
1 # Maintainer: SpepS <dreamspepser at yahoo dot it>
3 _name=laborejo
4 pkgname=$_name-git
5 pkgver=20111213
6 pkgrel=1
7 pkgdesc="Music Notation Workshop"
8 arch=(any)
9 url="http://www.$_name.org/"
10 license=('GPL')
11 depends=('pyqt')
12 optdepends=('lilypond: lilypond support'
13             'python-pysmf: smf support'
14             'jack: JACK output')
15 makedepends=('git')
16 provides=("$_name")
17 conflicts=("$_name")
18 source=("$_name.sh")
19 md5sums=('48017430ff111cc2f89fda26507c62cf')
21 _gitroot=https://github.com/nilsgey/Laborejo.git
22 _gitname=$_name
24 build() {
25   cd "$srcdir"
26   msg "Connecting to GIT server...."
28   if [[ -d "$_gitname" ]]; then
29     cd "$_gitname" && git pull origin
30     msg "The local files are updated."
31   else
32     git clone "$_gitroot" "$_gitname"
33   fi
35   msg "GIT checkout done or server timeout"
36   msg "Starting build..."
38   rm -rf "$srcdir/$_gitname-build"
39   git clone "$srcdir/$_gitname" "$srcdir/$_gitname-build"
40   cd "$srcdir/$_gitname-build"
42   #
43   # BUILD HERE
44   #
47 package() {
48   cd "$srcdir/$_gitname-build"
50   # data
51   install -d "$pkgdir/usr/share/$_name"
52   cp -a * "$pkgdir/usr/share/$_name"
54   # exec
55   install -Dm755 ../$_name.sh "$pkgdir/usr/bin/$_name"
58 # vim:set ts=2 sw=2 et: