1
0
Fork 0
mirror of https://gitlab.alpinelinux.org/alpine/aports.git synced 2025-07-24 11:45:18 +03:00

testing/perl-radiusperl: new apkbuild

This commit is contained in:
Francesco Colista 2012-01-02 09:27:38 +00:00
parent 330a49e1c7
commit 30e7c8dec9

View file

@ -3,7 +3,7 @@
# Maintainer: Francesco Colista <francesco.colista@gmail.com>
pkgname=perl-radiusperl
_pkgreal=RadiusPerl
_modulename=Authen-Radius
_pkgalt=Authen-Radius
pkgver=0.20
pkgrel=0
pkgdesc="Perl module for RadiusPerl"
@ -13,26 +13,26 @@ license="GPL PerlArtistic"
cpandepends=""
cpanmakedepends="perl-data-hexdump"
depends="$cpandepends"
makedepends="perl-dev $cpanmakedepends"
makedepends="perl-dev freeradius-dev $cpanmakedepends"
subpackages="$pkgname-doc"
source="http://search.cpan.org/CPAN/authors/id/M/MA/MANOWAR/$_pkgreal-$pkgver.tar.gz"
_builddir="$srcdir/$_modulename-$pkgver"
_builddir="$srcdir/$_pkgalt-$pkgver"
prepare() {
cd "$_builddir"
if [ -e Build.PL ]; then
perl Build.PL installdirs=vendor || return 1
else
PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor || return 1
fi
}
build() {
cd "$_builddir"
# I don't make test because this packages need a radius server installed
make
}
package() {
cd "$_builddir"
make DESTDIR="$pkgdir" install || return 1
find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
}
md5sums="acd0f83204117e47bacc0105868266b1 RadiusPerl-0.20.tar.gz"