updated on Wed Jan 25 16:08:47 UTC 2012
[aur-mirror.git] / bioperl-live-git / PKGBUILD
blobe73df2a25955e1a7b4203b12898971df54f120c8
1 # Maintainer: Thomas Dziedzic < gostrc at gmail >
2 # Contributor: Abhishek Dasgupta <abhidg@gmail.com>
3 # Contributor: damir <damir@archlinux.org>
5 pkgname=bioperl-live-git
6 pkgver=20100604
7 pkgrel=1
8 pkgdesc='Perl modules for bioinformatics applications.'
9 arch=('any')
10 license=('GPL' 'PerlArtistic')
11 url='http://www.bioperl.org'
12 depends=('perl' 'perl-io-string')
13 makedepends=('perl-data-stag' 'git')
14 options=('!emptydirs')
16 _gitroot=git://github.com/bioperl/bioperl-live.git
17 _gitname=bioperl-live
19 build() {
20   msg 'Getting sources...'
21   if [ -d $_gitname ]; then
22     cd $_gitname
23     git pull origin
24   else
25     git clone $_gitroot
26     cd $_gitname
27   fi
28   msg 'GIT checkout done or server timeout'
29   msg 'Starting make...'
31   # non-interactive, uses defaults
32   perl Build.PL < /dev/null
34   ./Build
36   ./Build install                                   \
37     --install_base /usr                             \
38     --install_path lib=/usr/share/perl5/vendor_perl \
39     --install_path bindoc=/usr/share/man/man1       \
40     --install_path libdoc=/usr/share/man/man3       \
41     --destdir "$pkgdir"
43   # remove .pl extensions from binaries
44   cd "$pkgdir/usr/bin"
45   for b in *; do
46     mv $b $(basename $b .pl)
47     mv "$pkgdir/usr/share/man/man1/$b.1p" "$pkgdir/usr/share/man/man1/$(basename $b .pl).1p"
48   done
50   # remove perllocal.pod and .packlist
51   find "$pkgdir" -name 'perllocal.pod' -delete
52   find "$pkgdir" -name '.packlist' -delete