mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-08-06 05:47:13 +02:00
testing/perl-datetime-astro: new aport
https://metacpan.org/release/DateTime-Astro/ Functions for astronomical calendars
This commit is contained in:
parent
2251c5e16f
commit
1ed834dd7c
38
testing/perl-datetime-astro/APKBUILD
Normal file
38
testing/perl-datetime-astro/APKBUILD
Normal file
@ -0,0 +1,38 @@
|
|||||||
|
# Automatically generated by apkbuild-cpan, template 4
|
||||||
|
# Maintainer: Celeste <cielesti@protonmail.com>
|
||||||
|
maintainer="Celeste <cielesti@protonmail.com>"
|
||||||
|
pkgname=perl-datetime-astro
|
||||||
|
pkgver=1.04
|
||||||
|
pkgrel=0
|
||||||
|
#_pkgreal is used by apkbuild-cpan to find modules at MetaCpan
|
||||||
|
_pkgreal=DateTime-Astro
|
||||||
|
pkgdesc="Functions for astronomical calendars"
|
||||||
|
url="https://metacpan.org/release/DateTime-Astro/"
|
||||||
|
arch="all"
|
||||||
|
license="Artistic-2.0"
|
||||||
|
depends="perl perl-datetime perl-datetime-set"
|
||||||
|
makedepends="gmp-dev mpfr-dev perl-dev perl-module-build perl-module-build-xsutil"
|
||||||
|
checkdepends="perl-json perl-test-exception perl-test-requires"
|
||||||
|
subpackages="$pkgname-doc"
|
||||||
|
source="https://cpan.metacpan.org/authors/id/D/DM/DMAKI/DateTime-Astro-$pkgver.tar.gz"
|
||||||
|
builddir="$srcdir/$_pkgreal-$pkgver"
|
||||||
|
|
||||||
|
build() {
|
||||||
|
export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
|
||||||
|
perl Build.PL \
|
||||||
|
--installdirs=vendor \
|
||||||
|
--create_packlist=0
|
||||||
|
./Build
|
||||||
|
}
|
||||||
|
|
||||||
|
check() {
|
||||||
|
./Build test
|
||||||
|
}
|
||||||
|
|
||||||
|
package() {
|
||||||
|
./Build install --destdir="$pkgdir"
|
||||||
|
}
|
||||||
|
|
||||||
|
sha512sums="
|
||||||
|
5b686c7bd2903ad644e5d0ab81b05697d26db69173352383bb194c7853ec1fc53e1b0c8752bcfeef461374f7a2353d7b964c12f0770545b74e64c58a641336eb DateTime-Astro-1.04.tar.gz
|
||||||
|
"
|
Loading…
Reference in New Issue
Block a user