updated on Fri Jan 20 16:18:17 UTC 2012
[aur-mirror.git] / nama-git / PKGBUILD
blobc071ea10f9a92198e83276dedcb29250f78ac588
1 # Maintainer: Philipp Überbacher <murks@lavabit.com>
2 pkgname=nama-git
3 pkgver=20110819
4 pkgrel=1
5 pkgdesc="Tk/CLI frontend for ecasound"
6 arch=('any')
7 url="http://freeshell.de/~bolangi/cgi1/nama.cgi/00home.html"
8 license=('PerlArtistic' 'GPL')
9 depends=('perl>=5.10.0' 'ladspa' 'ecasound' 'perl-anyevent>=5'
10 'perl-event' 'perl-parse-recdescent' 'perl-data-section'
11 'perl-file-find-rule' 'perl-modern-perl' 'perl-term-readline-gnu'
12 'perl-file-homedir' 'perl-yaml-tiny' 'perl-file-slurp'
13 'perl-file-copy-link' 'perl-graph' 'perl-text-format'
14 'perl-params-util' 'perl-audio-ecasound' 'perl-tk'
15 'perl-text-template' 'perl-io-all')
16 provides=('perl-audio-nama' 'nama')
17 conflicts=('nama')
18 optdepends=()
19 options=(!emptydirs)
21 _gitroot="git://github.com/bolangi/nama.git"
22 _gitname="nama.git"
23 _gitbranch="master"
25 build() {
26   cd "${srcdir}"
27   msg "Connecting to GIT server...."
29   if [ -d ${_gitname} ] ; then
30     cd ${_gitname} && git pull origin
31     msg "The local files are updated."
32   else
33     git clone ${_gitroot} ${_gitname}
34   fi
36   msg "GIT checkout done or server timeout"
37   msg "Starting make..."
39   rm -rf "${srcdir}/${_gitname}-build"
40   cp -r "${srcdir}/${_gitname}" "${srcdir}/${_gitname}-build"
42   cd "${srcdir}/${_gitname}-build"
43 #  git checkout --track -b ${_gitbranch} origin/${_gitbranch}
47   # Setting these env variables overwrites any command-line-options we don't want...
49   export PERL_MM_USE_DEFAULT=1 PERL_AUTOINSTALL=--skipdeps \
50     PERL_MM_OPT="INSTALLDIRS=vendor DESTDIR='$pkgdir'" \
51     PERL_MB_OPT="--installdirs vendor --destdir '$pkgdir'" \
52     MODULEBUILDRC=/dev/null
54   msg "build it!"
56   cd src
57   ./build || return 1
59   msg "Perl, make me a nama..."
60   
61   cd ..
62   # If using Makefile.PL
63   { perl Makefile.PL &&
64     make &&
65     make test &&
66     make install; }
68   # remove perllocal.pod and .packlist
69   find "$pkgdir" -name .packlist -o -name perllocal.pod -delete