summaryrefslogblamecommitdiff
path: root/user/perl-devel-hide/APKBUILD
blob: 6eea34be82691d5c6a72ae1b1cfb6926fa357c9c (plain) (tree)
































                                                                                                                                                                       
# Contributor: Kiyoshi Aman <kiyoshi.aman+adelie@gmail.com>
# Maintainer: Adélie Perl Team <adelie-perl@lists.adelielinux.org>
pkgname=perl-devel-hide
pkgver=0.0010
pkgrel=0
pkgdesc="Perl module for forcing the unavailability of modules for testing"
url="https://metacpan.org/pod/Devel::Hide"
arch="noarch"
license="Artistic-1.0-Perl"
depends="perl"
makedepends=""
subpackages="$pkgname-doc"
source="https://cpan.metacpan.org/authors/id/F/FE/FERREIRA/Devel-Hide-$pkgver.tar.gz"
builddir="$srcdir/Devel-Hide-$pkgver"

build() {
	cd "$builddir"
	PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
	make
}

check() {
	cd "$builddir"
	make test
}

package() {
	cd "$builddir"
	make DESTDIR="$pkgdir" install
	find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
}

sha512sums="50bd9daf86239963e501936f09c0ee4b19be65deef22774910813a2502a2f60a6efcf7fbd586f2ea09c60ca1b77aa418a08043151f5a0d9915b7d881d66013c9  Devel-Hide-0.0010.tar.gz"