blob: 729af953de41d7e7b8cd96be3f0c16d635f9cee7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
|
# Contributor: Will Chappell <wtchappell@gmail.com>
# Contributor: denton <e9203.00 gmail com>
# Maintainer: Jeffrey Tolar <tolar.jeffrey at gmail dot com>
pkgname=cope-git
_gitname=cope
pkgver=147.64038ce
pkgrel=1
pkgdesc='A colourful wrapper for terminal programs'
url=http://stuff.cytzol.org/cope/
arch=(any)
license=('GPL' 'PerlArtistic')
depends=("perl>=5.1" 'perl-class-inspector' 'perl-env-path' 'perl-file-sharedir'
'perl-io-stty' 'perl-io-tty' 'perl-list-moreutils' 'perl-params-util'
'perl-regexp-common')
makedepends=('git')
install=$pkgname.install
source=("git://github.com/lotrfan/${_gitname}.git")
md5sums=('SKIP')
pkgver() {
cd "$_gitname"
echo $(git rev-list --count HEAD).$(git rev-parse --short HEAD)
}
build() {
cd "$_gitname"
# Make
PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor || return 1
make || return 1
}
package() {
cd "$_gitname"
make install DESTDIR=$pkgdir || return 1
# Install the 'cope_path' command for use in bash startup scripts.
mkdir -p $pkgdir/usr/bin
install -C cope_path.pl $pkgdir/usr/bin/cope_path
# Clean
find $pkgdir -name perllocal.pod -delete
find $pkgdir -name .packlist -delete
}
|