blob: d0fead4e2a4889e6bbfcd038bd2c871391c2de81 (
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
|
# $Id: PKGBUILD 240285 2015-06-03 08:15:34Z fyan $
# Maintainer (Arch): Giovanni Scafora <giovanni@archlinux.org>
# Contributor (Arch): François Charette <firmicus ατ gmx δοτ net>
pkgname=perl-fcgi
pkgver=0.78
pkgrel=0.parabola1
pkgdesc="Fast CGI"
arch=('i686' 'x86_64')
url="http://search.cpan.org/dist/FCGI"
license=('custom')
depends=('perl')
options=('!emptydirs')
source=("http://search.cpan.org/CPAN/authors/id/E/ET/ETHER/FCGI-${pkgver}.tar.gz")
md5sums=('916cd2887b27265cd8dcfd3280135270')
build() {
cd "${srcdir}/FCGI-${pkgver}"
PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
make
}
check() {
cd "${srcdir}/FCGI-${pkgver}"
make test
}
package() {
cd "${srcdir}/FCGI-${pkgver}"
make install DESTDIR="${pkgdir}"
# 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;
}
|