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

testing/perl-dbix-introspector: fix url fix license

This commit is contained in:
Leo 2019-06-28 00:56:35 -03:00
parent 429ae3d273
commit 1a382e1dad

View file

@ -4,43 +4,38 @@
pkgname=perl-dbix-introspector
_pkgreal=DBIx-Introspector
pkgver=0.001005
pkgrel=0
pkgrel=1
pkgdesc="Detect what database you are connected to"
url="http://search.cpan.org/dist/DBIx-Introspector/"
url="https://metacpan.org/release/DBIx-Introspector"
arch="noarch"
license="GPL PerlArtistic"
license="GPL-1.0-or-later OR Artistic-1.0-Perl"
cpandepends="perl-dbi perl-moo"
cpanmakedepends=""
cpancheckdepends="perl-dbd-sqlite perl-test-roo"
depends="$cpandepends"
makedepends="perl-dev $cpanmakedepends"
makedepends="perl-dev"
checkdepends="perl-test-fatal $cpancheckdepends"
subpackages="$pkgname-doc"
source="http://search.cpan.org/CPAN/authors/id/F/FR/FREW/$_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
}