1
0
Fork 0
mirror of https://gitlab.alpinelinux.org/alpine/aports.git synced 2025-07-23 03:05:48 +03:00

testing/perl-datetime-format-sqlite: fix url fix license

This commit is contained in:
Leo 2019-06-28 00:51:50 -03:00
parent 4c36c0fc32
commit 38c904eeb0

View file

@ -4,43 +4,36 @@
pkgname=perl-datetime-format-sqlite pkgname=perl-datetime-format-sqlite
_pkgreal=DateTime-Format-SQLite _pkgreal=DateTime-Format-SQLite
pkgver=0.11 pkgver=0.11
pkgrel=0 pkgrel=1
pkgdesc="Parse and format SQLite dates and times" pkgdesc="Parse and format SQLite dates and times"
url="http://search.cpan.org/dist/DateTime-Format-SQLite/" url="https://metacpan.org/release/DateTime-Format-SQLite"
arch="noarch" arch="noarch"
license="GPL PerlArtistic" license="GPL-1.0-or-later OR Artistic-1.0-Perl"
cpandepends="perl-datetime-format-builder perl-datetime" cpandepends="perl-datetime-format-builder perl-datetime"
cpanmakedepends=""
cpancheckdepends=""
depends="$cpandepends" depends="$cpandepends"
makedepends="perl-dev $cpanmakedepends" makedepends="perl-dev"
checkdepends="$cpancheckdepends"
subpackages="$pkgname-doc" subpackages="$pkgname-doc"
source="http://search.cpan.org/CPAN/authors/id/C/CF/CFAERBER/$_pkgreal-$pkgver.tar.gz" source="http://search.cpan.org/CPAN/authors/id/C/CF/CFAERBER/$_pkgreal-$pkgver.tar.gz"
builddir="$srcdir/$_pkgreal-$pkgver" builddir="$srcdir/$_pkgreal-$pkgver"
prepare() { prepare() {
default_prepare || return 1 default_prepare
cd "$builddir"
export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}') export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
} }
build() { build() {
cd "$builddir"
export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}') export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
make make
} }
package() { package() {
cd "$builddir" make DESTDIR="$pkgdir" install
make DESTDIR="$pkgdir" install || return 1
find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
} }
check() { check() {
cd "$builddir"
export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}') export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
make test make test
} }