updated on Sun Jan 15 08:01:04 UTC 2012
[aur-mirror.git] / luppp-git / PKGBUILD
blobdde304a4944bb1e48ee62c4f69e032ce1abb1e86
1 # Maintainer: SpepS <dreamspepser at yahoo dot it>
3 _name=luppp
4 pkgname=$_name-git
5 pkgver=20120115
6 pkgrel=1
7 pkgdesc="A live looping instrument"
8 arch=(i686 x86_64)
9 url="https://github.com/harryhaaren/Luppp"
10 license=('GPL')
11 depends=('suil' 'lilv' 'gtkmm' 'libconfig' 'fluidsynth')
12 makedepends=('git' 'python2' 'ladspa')
13 optdepends=('ladspa: ladspa plugins support')
14 provides=("$_name")
15 conflicts=("$_name")
17 _gitroot=https://github.com/harryhaaren/Luppp.git
18 _gitname=$_name
20 build() {
21   cd "$srcdir"
22   msg "Connecting to GIT server...."
24   if [[ -d "$_gitname" ]]; then
25     cd "$_gitname" && git pull origin
26     msg "The local files are updated."
27   else
28     git clone "$_gitroot" "$_gitname"
29   fi
31   msg "GIT checkout done or server timeout"
32   msg "Starting build..."
34   rm -rf "$srcdir/$_gitname-build"
35   git clone "$srcdir/$_gitname" "$srcdir/$_gitname-build"
36   cd "$srcdir/$_gitname-build"
38   #
39   # BUILD HERE
40   #
42   # resources in /usr/share/$pkgname
43   sed -e "s|ui.glade|/usr/share/$_name/&|" \
44       -e "s|\"\(.*\.png\)|\"/usr/share/$_name/\1|" \
45       -i src/g_{window,masteroutput}.cpp
47   python2 waf configure --prefix=/usr
48   python2 waf
51 package() {
52   cd "$srcdir/$_gitname-build"
53   DESTDIR="$pkgdir/"  python2 waf install
55   # glade interface
56   install -d "$pkgdir/usr/share/$_name"
57   install -Dm644 .build/{ui.glade,*.png} \
58     "$pkgdir/usr/share/$_name"
61 # vim:set ts=2 sw=2 et: