aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTimothy Legge <timlegge@gmail.com>2020-03-12 02:04:28 +0000
committerLeo <thinkabit.ukim@gmail.com>2020-03-12 18:44:46 -0300
commit8383e40109e04e0acd212dea6e3a55cb3dcccf6c (patch)
tree6bdd0c9bd4db167692e3a74fac12ab2c00882e5e
parentdd434d3d41a03ef684f16395a9371047ef7fe206 (diff)
downloadaports-8383e40109e04e0acd212dea6e3a55cb3dcccf6c.tar.gz
aports-8383e40109e04e0acd212dea6e3a55cb3dcccf6c.tar.bz2
aports-8383e40109e04e0acd212dea6e3a55cb3dcccf6c.tar.xz
main/perl-namespace-autoclean: fix invalid APKBUILD variable
-rw-r--r--main/perl-namespace-autoclean/APKBUILD26
1 files changed, 9 insertions, 17 deletions
diff --git a/main/perl-namespace-autoclean/APKBUILD b/main/perl-namespace-autoclean/APKBUILD
index 6a5ab042fe..3fd7355561 100644
--- a/main/perl-namespace-autoclean/APKBUILD
+++ b/main/perl-namespace-autoclean/APKBUILD
@@ -1,42 +1,34 @@
+# Automatically generated by apkbuild-cpan, template 3
# Contributor: Sören Tempel <soeren+alpine@soeren-tempel.net>
# Contributor: Francesco Colista <fcolista@alpinelinux.org>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=perl-namespace-autoclean
-_pkgreal=${pkgname#*-}
+_pkgreal=namespace-autoclean
pkgver=0.29
-pkgrel=0
+pkgrel=1
pkgdesc="Keep imports out of your namespace"
-url="https://metacpan.org/release/namespace-autoclean"
+url="https://metacpan.org/release/namespace-autoclean/"
arch="noarch"
license="GPL-1.0-or-later OR Artistic-1.0-Perl"
-cpandepends="perl-b-hooks-endofscope perl-namespace-clean"
-cpanmakedepends="perl-sub-name perl-test-requires perl-sub-install"
-depends="$cpandepends"
-makedepends="perl-dev $cpanmakedepends"
-checkdepends="perl-test-needs"
+depends="perl perl-sub-identify perl-b-hooks-endofscope perl-namespace-clean"
+makedepends="perl-dev"
+checkdepends="perl-test-needs perl-devel-overloadinfo"
subpackages="$pkgname-doc"
source="https://cpan.metacpan.org/authors/id/E/ET/ETHER/namespace-autoclean-$pkgver.tar.gz"
-
builddir="$srcdir/$_pkgreal-$pkgver"
-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}')
+ PERL_MM_USE_DEFAULT=1 perl -I. Makefile.PL INSTALLDIRS=vendor
make
}
check() {
- cd "$builddir"
+ export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
make test
}
package() {
- cd "$builddir"
make DESTDIR="$pkgdir" install
find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
}