summaryrefslogtreecommitdiff
path: root/user/perl-lib-relative/APKBUILD
blob: 45df724e93283fda4fb84e5c94771e9c7a290009 (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: A. Wilcox <awilfox@adelielinux.org>
# Maintainer: Síle Ekaterin Liszka <sheila@vulpine.house>
pkgname=perl-lib-relative
_pkgreal=lib-relative
_author=DBOOK
_au=${_author%%"${_author#??}"}
_a=${_author%%"${_author#?}"}
pkgver=1.001
pkgrel=0
pkgdesc="Add paths relative to the current file to Perl @INC"
url="https://metacpan.org/release/lib-relative"
arch="noarch"
license="Artistic-2.0"
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="6e4e07d4a0f4d921e6b5cd088b75e855d60cefb0c2b9c83e6b2b0670a4207e5c966295dc3ef09b2590c92f193cc1c5a21c7ba552fc6f18a1037d8e59433eeff8  lib-relative-1.001.tar.gz"