updated on Thu Jan 26 00:18:00 UTC 2012
[aur-mirror.git] / swh-lv2-git / PKGBUILD
blobe96e11e19c480c01f443bdbd6a4dc7176f889df9
1 # Maintainer: orbisvicis <''.join(chr(ord(c)-1) for c in "pscjtwjdjtAhnbjm/dpn")>
2 # Contributor: Ray Rashif <rayrashif@gmail.com>
4 pkgname=swh-lv2-git
5 _pkg="${pkgname%-git}"
6 pkgver=20110930
7 pkgrel=1
8 pkgdesc="Experimental port of Steve Harris' LADSPA plugins to the LV2 specification"
9 arch=("i686" "x86_64")
10 url="http://plugin.org.uk/"
11 license=("GPL3")
12 groups=("lv2-plugins")
13 depends=("fftw" "lv2core")
14 makedepends=("libxslt")
15 optdepends=()
16 provides=("$_pkg")
17 conflicts=("$_pkg")
18 options=()
20 _gitroot="git://github.com/swh/lv2.git"
21 _gitname="$_pkg"
23 build() {
24   local _gitdir="${srcdir}/${_gitname}"
25   msg "Connecting to GIT server...."
27   if [[ -d "$_gitdir" ]]; then
28     cd "$_gitdir" && git pull origin
29     msg "The local files are updated."
30   else
31     git clone "$_gitroot" "$_gitdir"
32   fi
34   msg "GIT checkout done or server timeout"
35   msg "Starting build..."
37   cd "$_gitdir"
38   git clean -dfx
39   git reset --hard HEAD
41   # Build
42   make
45 package(){
46   local _gitdir="${srcdir}/${_gitname}"
47   cd "$_gitdir"
49   make INSTALL_DIR="${pkgdir}/usr/lib/lv2" install-system
52 # vim:set ts=2 sw=2 et: