# Automatically generated by apkbuild-cpan, template 1 # Contributor: Valery Kartel # Maintainer: Valery Kartel setglobal pkgname = 'perl-bsd-resource' setglobal _pkgreal = 'BSD-Resource' setglobal pkgver = '1.2909' setglobal pkgrel = '2' setglobal pkgdesc = '"Perl extension implements the BSD process resource limit functions'" setglobal url = '"http://search.cpan.org/dist/BSD-Resource/'" setglobal arch = '"all'" setglobal license = '"GPL PerlArtistic'" setglobal cpandepends = ''"" setglobal cpanmakedepends = '" '" setglobal depends = $cpandepends setglobal makedepends = ""perl-dev $cpanmakedepends"" setglobal subpackages = ""$pkgname-doc"" setglobal source = ""http://search.cpan.org/CPAN/authors/id/J/JH/JHI/$_pkgreal-$pkgver.tar.gz"" setglobal _builddir = ""$srcdir/$_pkgreal-$pkgver"" proc prepare { cd $_builddir export CFLAGS=$[perl -MConfig -E 'say $Config{ccflags}] env PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor } proc build { cd $_builddir export CFLAGS=$[perl -MConfig -E 'say $Config{ccflags}] make && make test || return 1 } proc package { cd $_builddir make DESTDIR="$pkgdir" install || return 1 find $pkgdir '(' -name perllocal.pod -o -name .packlist ')' -delete } setglobal md5sums = '"3c6dd2fa953088aa87e263f40818d012 BSD-Resource-1.2909.tar.gz'" setglobal sha256sums = '"c47d460e2bd00d8d049f6ff4a0f1f61957e289e8de45af5fc79e851e2e855e06 BSD-Resource-1.2909.tar.gz'" setglobal sha512sums = '"5f489eaac5089e82081b7cf51d62638750e443751b49415407354da96b17771819b5e6e85529faa41ddd85743363750157943c7f7700276cce2bd40a429fa430 BSD-Resource-1.2909.tar.gz'"