1 # Contributor: Will Chappell <wtchappell@gmail.com>
2 # Contributor: denton <e9203.00 gmail com>
7 pkgdesc='A colourful wrapper for terminal programs'
8 url=http://stuff.cytzol.org/cope/
10 license=('GPL' 'PerlArtistic')
11 depends=("perl>=5.1" 'perl-class-inspector' 'perl-env-path' 'perl-file-sharedir'
12 'perl-io-stty' 'perl-io-tty' 'perl-list-moreutils' 'perl-params-util'
15 install=$pkgname.install
17 _gitroot=https://github.com/trapd00r/${_realname}.git
24 msg 'Connecting to GIT server....'
26 if [ -d $_gitname ] ; then
27 cd $_gitname && git pull origin
28 msg 'The local files are updated.'
33 msg 'GIT checkout done or server timeout'
34 msg 'Starting make...'
36 rm -rf $srcdir/$_gitname-build
37 git clone $srcdir/$_gitname $srcdir/$_gitname-build
38 cd $srcdir/$_gitname-build
41 PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor || return 1
43 make install DESTDIR=$pkgdir || return 1
45 # Install the 'cope_path' command for use in bash startup scripts.
46 mkdir -p $pkgdir/usr/bin
47 install -C cope_path.pl $pkgdir/usr/bin/cope_path
50 find $pkgdir -name perllocal.pod -delete
51 find $pkgdir -name .packlist -delete