blob: bafc0b598b632158ff74d80692b3ff7824886bd9 (
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
|
# Maintainer: Brian Bidulock <bidulock@openss7.org>
pkgname=perl-spread
_realname=Spread
pkgver=3.17.4.4
pkgrel=12.5
pkgdesc="Perl extension for the Spread group communication system"
arch=('i686' 'x86_64')
url="http://search.cpan.org/~jesus/Spread-3.17.4.4/Spread.pm"
license=('LGPL' 'PerlArtistic')
depends=('perl' 'gtk2-perl' 'perl-extutils-depends' 'perl-extutils-pkgconfig' 'libunique' 'spread-daemon')
options=('!emptydirs')
source=(http://search.cpan.org/CPAN/authors/id/J/JE/JESUS/Spread-$pkgver.tar.gz groups.patch)
md5sums=('751314b7494530ad8feff2c10ac23010'
'091a17cfe9d8ae95170f34c5d3439a7d')
prepare() {
cd $_realname-$pkgver
patch -Np2 -b -z .orig <../groups.patch
}
build() {
cd $_realname-$pkgver
PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
make
}
_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 install DESTDIR=$pkgdir
find $pkgdir -name '.packlist' -delete
find $pkgdir -name '*.pod' -delete
_perl_depends
}
|