updated on Thu Jan 12 20:00:29 UTC 2012
[aur-mirror.git] / bioperl-run-git / PKGBUILD
blob5ce9be5b3ddf51e6705c67ffeefc09215427f06c
1 # Maintainer: Thomas Dziedzic < gostrc at gmail >
3 pkgname=bioperl-run-git
4 pkgver=20100604
5 pkgrel=1
6 pkgdesc='Wrapper modules around many common bioinformatics applications and tools.'
7 arch=('any')
8 license=('GPL' 'PerlArtistic')
9 url='http://www.bioperl.org/wiki/Run_package'
10 depends=('perl' 'perl-io-string' 'bioperl-live-git')
11 makedepends=('perl-data-stag' 'git')
12 options=(!emptydirs)
14 _gitroot='git://github.com/bioperl/bioperl-run.git'
15 _gitname='bioperl-run'
17 build() {
18   msg 'Getting sources...'
19   if [ -d $_gitname ]; then
20     cd $_gitname
21     git pull origin
22   else
23     git clone $_gitroot
24     cd $_gitname
25   fi
26   msg 'GIT checkout done or server timeout'
27   msg 'Starting make...'
29   # non-interactive, uses defaults
30   perl Build.PL < /dev/null
32   ./Build
34   ./Build install                                   \
35     --install_base /usr                             \
36     --install_path lib=/usr/share/perl5/vendor_perl \
37     --install_path bindoc=/usr/share/man/man1       \
38     --install_path libdoc=/usr/share/man/man3       \
39     --destdir "$pkgdir"
41   # remove perllocal.pod and .packlist
42   find "$pkgdir" -name 'perllocal.pod' -delete
43   find "$pkgdir" -name '.packlist' -delete