summaryrefslogtreecommitdiff
path: root/user/perl-file-sharedir-install/APKBUILD
blob: 15ef018b29679c9228e7e0136a635e73dee5598d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
# Contributor: Dan Theisen <djt@hxx.in>
# Maintainer: Síle Ekaterin Liszka <sheila@vulpine.house>
pkgname=perl-file-sharedir-install
_pkgreal=File-ShareDir-Install
_author=ETHER
_au=${_author%%"${_author#??}"}
_a=${_author%%"${_author#?}"}
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"
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="a119e38491fad8ae0ebd95913e3b608e09a2b99376a5160e75083a28abe4f83c4f6a36df216365527ff87bf8ec095254b16a2f6d2515c69f34609df8672605ca  File-ShareDir-Install-0.13.tar.gz"