summaryrefslogblamecommitdiff
path: root/user/perl-file-sharedir-install/APKBUILD
blob: f2b567b5efca9c79a1b55faadc42831973918b2e (plain) (tree)
































                                                                                                                                                                                
# Contributor: Dan Theisen <djt@hxx.in>
# Maintainer: Adélie Perl Team <adelie-perl@lists.adelielinux.org>
pkgname=perl-file-sharedir-install
pkgver=0.13
pkgrel=0
pkgdesc="Install shared files"
url="https://metacpan.org/pod/File::ShareDir::Install"
arch="noarch"
license="GPL-1.0+ OR Artistic-1.0-Perl"
depends="perl"
makedepends="perl-dev"
install=""
subpackages="$pkgname-doc"
source="https://cpan.metacpan.org/authors/id/E/ET/ETHER/File-ShareDir-Install-$pkgver.tar.gz"
builddir="$srcdir/File-ShareDir-Install-$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="a119e38491fad8ae0ebd95913e3b608e09a2b99376a5160e75083a28abe4f83c4f6a36df216365527ff87bf8ec095254b16a2f6d2515c69f34609df8672605ca  File-ShareDir-Install-0.13.tar.gz"