updated on Wed Jan 25 16:08:47 UTC 2012
[aur-mirror.git] / lyd-git / PKGBUILD
blob67eaca9e9e8a543c58cc411cbf67b99310057878
1 # This is an example PKGBUILD file. Use this as a start to creating your own,
2 # and remove these comments. For more information, see 'man PKGBUILD'.
3 # NOTE: Please fill out the license field for your package! If it is unknown,
4 # then please put 'unknown'.
6 # See http://wiki.archlinux.org/index.php/VCS_PKGBUILD_Guidelines
7 # for more information on packaging from GIT sources.
9 # Contributor: Your Name <fogobogo@archlinux.us>
10 pkgname=lyd-git
11 pkgver=20100910
12 pkgrel=1
13 pkgdesc="A compact self-contained realtime audio-synthesis engine"
14 arch=('i686')
15 url="http://pippin.gimp.org/lyd/"
16 license=('GPL')
17 depends=('alsa-lib')
18 makedepends=('git')
20 _gitroot="git://pippin.gimp.org/lyd"
21 _gitname="lyd"
23 build() {
24   cd "$srcdir"
25   msg "Connecting to GIT server...."
27   if [ -d $_gitname ] ; then
28     cd $_gitname && git pull origin
29     msg "The local files are updated."
30   else
31     git clone $_gitroot $_gitname
32   fi
34   msg "GIT checkout done or server timeout"
35   msg "Starting make..."
37   rm -rf "$srcdir/$_gitname-build"
38   git clone "$srcdir/$_gitname" "$srcdir/$_gitname-build"
39   cd "$srcdir/$_gitname-build"
41   #
42   # BUILD HERE
43   #
45   ./autogen.sh
46   ./configure --prefix=/usr
47   make || return 1
48   make DESTDIR="$pkgdir/" install
49