summaryrefslogblamecommitdiff
path: root/user/perl-file-sharedir/APKBUILD
blob: c0f2fa9a24b317a1d4056b7504a4df036b104bc5 (plain) (tree)
1
2
3
4
5
6
7


                                                                   



                               





                                                

                                                             

                          

                                                                                        

         




                                                                 



                 




                                                                                                                                                                         
# Contributor: A. Wilcox <awilfox@adelielinux.org>
# Maintainer: Adélie Perl Team <adelie-perl@lists.adelielinux.org>
pkgname=perl-file-sharedir
_pkgreal=File-ShareDir
_author=REHSACK
_au=${_author%%"${_author#??}"}
_a=${_author%%"${_author#?}"}
pkgver=1.116
pkgrel=0
pkgdesc="Locate files shared by Perl modules"
url="https://metacpan.org/release/File-ShareDir"
arch="noarch"
license="Artistic-1.0-Perl OR GPL-2.0-only"
depends="perl perl-class-inspector perl-file-sharedir-install
	perl-list-moreutils perl-params-util"
makedepends="perl-dev"
subpackages="$pkgname-doc"
source="https://cpan.metacpan.org/authors/id/$_a/$_au/$_author/$_pkgreal-$pkgver.tar.gz"
builddir="$srcdir/$_pkgreal-$pkgver"

build() {
	PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
	make
}

check() {
	make test
}

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

sha512sums="5fcd75254c446f02ee377e6b5848baad95c73779b8525b0ee1699fe675ddd2bd67d0dc057f47b0991ec136de16e06a4891a4b14a78bd96c3e2468640053bbe0e  File-ShareDir-1.116.tar.gz"