blob: c584c7c48dd6f77d08971c89e217e55f7d6f1167 (
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
|
# Maintainer: Brian Bidulock <bidulock@openss7.org>
pkgname=perl-coro
_realname=Coro
pkgver=6.57
pkgrel=1.1
pkgdesc="CPAN/Coro - the only real threads in perl"
arch=('i686' 'x86_64')
license=('PerlArtistic' 'GPL')
options=('!emptydirs')
depends=('perl>=0' 'perl-anyevent>=5' 'perl-common-sense' 'perl-guard>=0.5')
makedepends=('perl-canary-stability')
url="https://metacpan.org/release/${_realname}"
source=("http://cpan.metacpan.org/authors/id/M/ML/MLEHMANN/${_realname}-${pkgver}.tar.gz")
md5sums=('fa5970a2a2f3df9d68d4369c7dde1a55')
build() {
cd $_realname-$pkgver
PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
make PERL_MM_USE_DEFAULT=1
}
check() {
cd $_realname-$pkgver
make PERL_MM_USE_DEFAULT=1 test
}
_perl_depends() {
# template start; name=perl-binary-module-dependency; version=1;
if [[ $(find "$pkgdir/usr/lib/perl5/" -name "*.so") ]]; then
_perlver_min=$(perl -e '$v = $^V->{version}; print $v->[0].".".($v->[1]);')
_perlver_max=$(perl -e '$v = $^V->{version}; print $v->[0].".".($v->[1]+1);')
depends+=("perl>=$_perlver_min" "perl<$_perlver_max")
fi
# template end;
}
package() {
cd $_realname-$pkgver
make PERL_MM_USE_DEFAULT=1 DESTDIR="$pkgdir" install
find "$pkgdir" \( -name '.packlist' -o -name '*.pod' \) -delete
_perl_depends
}
# vim:set ts=2 sw=2 et:
|