mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-07-12 18:59:50 +03:00
testing/perl-class-unload: new aport
This commit is contained in:
parent
455bcb4c19
commit
67b20f9518
1 changed files with 38 additions and 0 deletions
38
testing/perl-class-unload/APKBUILD
Normal file
38
testing/perl-class-unload/APKBUILD
Normal file
|
@ -0,0 +1,38 @@
|
|||
# Contributor: Wen Heping <wenhepingalpine@sohu.com>
|
||||
# Maintainer: Wen Heping <wenhepingalpine@sohu.com>
|
||||
pkgname=perl-class-unload
|
||||
pkgver=0.11
|
||||
pkgrel=0
|
||||
# _pkgreal is used by apkbuild-cpan to find modules at MetaCpan
|
||||
_pkgreal=Class-Unload
|
||||
pkgdesc="Unload a class"
|
||||
url="https://metacpan.org/release/Class-Unload/"
|
||||
arch="noarch"
|
||||
license="GPL-1.0-or-later OR Artistic-1.0-Perl"
|
||||
depends="perl perl-class-inspector"
|
||||
checkdepends="perl-test-requires"
|
||||
subpackages="$pkgname-doc"
|
||||
source="https://cpan.metacpan.org/authors/id/I/IL/ILMARI/Class-Unload-$pkgver.tar.gz"
|
||||
builddir="$srcdir/$_pkgreal-$pkgver"
|
||||
|
||||
build() {
|
||||
export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
|
||||
PERL_MM_USE_DEFAULT=1 perl -I. Makefile.PL \
|
||||
INSTALLDIRS=vendor \
|
||||
NO_PACKLIST=1 \
|
||||
NO_PERLLOCAL=1
|
||||
make
|
||||
}
|
||||
|
||||
check() {
|
||||
export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
|
||||
make test
|
||||
}
|
||||
|
||||
package() {
|
||||
make DESTDIR="$pkgdir" install
|
||||
}
|
||||
|
||||
sha512sums="
|
||||
464e5c82578bf43ac97a9c434bb1b4889a7b2d5e97d51b5f6965c3de44d81016177d2b1596a93d09bfac38266ffff7bd668b1f15d11444c692530894df9348e8 Class-Unload-0.11.tar.gz
|
||||
"
|
Loading…
Add table
Add a link
Reference in a new issue