mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-07-25 20:25:28 +03:00
testing/perl-algorithm-cron: new aport
http://search.cpan.org/dist/Algorithm-Cron/
This commit is contained in:
parent
d572030be3
commit
893aa16c24
1 changed files with 47 additions and 0 deletions
47
testing/perl-algorithm-cron/APKBUILD
Normal file
47
testing/perl-algorithm-cron/APKBUILD
Normal file
|
@ -0,0 +1,47 @@
|
||||||
|
# Automatically generated by apkbuild-cpan, template 2
|
||||||
|
# Contributor: Timo Teräs <timo.teras@iki.fi>
|
||||||
|
# Maintainer: Timo Teräs <timo.teras@iki.fi>
|
||||||
|
pkgname=perl-algorithm-cron
|
||||||
|
_pkgreal=Algorithm-Cron
|
||||||
|
pkgver=0.10
|
||||||
|
pkgrel=0
|
||||||
|
pkgdesc="abstract implementation of the F<cron(8)> scheduling"
|
||||||
|
url="http://search.cpan.org/dist/Algorithm-Cron/"
|
||||||
|
arch="noarch"
|
||||||
|
license="GPL PerlArtistic"
|
||||||
|
cpandepends="perl-time-timegm"
|
||||||
|
cpanmakedepends="perl-test-fatal"
|
||||||
|
cpancheckdepends=""
|
||||||
|
depends="$cpandepends"
|
||||||
|
makedepends="perl-dev $cpanmakedepends"
|
||||||
|
checkdepends="$cpancheckdepends"
|
||||||
|
subpackages="$pkgname-doc"
|
||||||
|
source="http://search.cpan.org/CPAN/authors/id/P/PE/PEVANS/$_pkgreal-$pkgver.tar.gz"
|
||||||
|
builddir="$srcdir/$_pkgreal-$pkgver"
|
||||||
|
|
||||||
|
prepare() {
|
||||||
|
default_prepare || return 1
|
||||||
|
|
||||||
|
cd "$builddir"
|
||||||
|
export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
|
||||||
|
perl Build.PL installdirs=vendor || return 1
|
||||||
|
}
|
||||||
|
|
||||||
|
build() {
|
||||||
|
cd "$builddir"
|
||||||
|
export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
|
||||||
|
./Build
|
||||||
|
}
|
||||||
|
|
||||||
|
package() {
|
||||||
|
cd "$builddir"
|
||||||
|
./Build install destdir="$pkgdir" || return 1
|
||||||
|
find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
|
||||||
|
}
|
||||||
|
|
||||||
|
check() {
|
||||||
|
cd "$builddir"
|
||||||
|
./Build test
|
||||||
|
}
|
||||||
|
|
||||||
|
sha512sums="8a894632226168084038800c997d18c86c45ea0254fe296d5022d8e632a63a2bb9ef894b4f2bbf6a71e11a18aff9af2d8e544e75d28a1bb3c674eb7d5281acb4 Algorithm-Cron-0.10.tar.gz"
|
Loading…
Add table
Add a link
Reference in a new issue