blob: f9032b3d556c7d06b6d777de03f1058dbe6c8f1d (
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
48
49
|
# Maintainer: Jeffrey Tolar <tolar.jeffrey at gmail dot com>
# Contributor: Will Chappell <wtchappell@gmail.com>
# Contributor: denton <e9203.00 gmail com>
pkgname=cope-git
_gitname=cope
pkgver=170.0dc82a9
pkgrel=2
pkgdesc='A colourful wrapper for terminal programs'
url=http://stuff.cytzol.org/cope/
arch=(any)
license=('GPL' 'PerlArtistic')
depends=("perl>=5.10" 'perl-class-inspector' 'perl-env-path' 'perl-file-sharedir'
'perl-io-stty' 'perl-io-tty' 'perl-list-moreutils' 'perl-params-util'
'perl-regexp-common' 'perl-regexp-ipv6' 'perl-module-install')
makedepends=('git')
conflicts=($_gitname)
provides=($_gitname)
install="${pkgname}.install"
source=("git+https://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
make
}
package() {
cd "$_gitname"
make install DESTDIR=$pkgdir
# 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
}
|