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
_pkgreal=DateTime-Format-SQLite
pkgver=0.11
pkgrel=0
pkgrel=1
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"
license="GPL PerlArtistic"
license="GPL-1.0-or-later OR Artistic-1.0-Perl"
cpandepends="perl-datetime-format-builder perl-datetime"
cpanmakedepends=""
cpancheckdepends=""
depends="$cpandepends"
makedepends="perl-dev $cpanmakedepends"
checkdepends="$cpancheckdepends"
makedepends="perl-dev"
subpackages="$pkgname-doc"
source="http://search.cpan.org/CPAN/authors/id/C/CF/CFAERBER/$_pkgreal-$pkgver.tar.gz"
builddir="$srcdir/$_pkgreal-$pkgver"
prepare() {
default_prepare || return 1
default_prepare
cd "$builddir"
export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
}
build() {
cd "$builddir"
export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
make
}
package() {
cd "$builddir"
make DESTDIR="$pkgdir" install || return 1
make DESTDIR="$pkgdir" install
find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
}
check() {
cd "$builddir"
export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
make test
}