summaryrefslogtreecommitdiff
path: root/system/perl-uri/APKBUILD
blob: 464bd7a8c5a1cd1b5fe6c9ee2a80e36cefe467f0 (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
35
36
# Contributor: Síle Ekaterin Liszka <sheila@vulpine.house>
# Maintainer: Síle Ekaterin Liszka <sheila@vulpine.house>
pkgname=perl-uri
_pkgreal=URI
_author=OALDERS
_au=${_author%%"${_author#??}"}
_a=${_author%%"${_author#?}"}
pkgver=5.21
pkgrel=0
pkgdesc="Perl library for URI manipulation"
url="https://metacpan.org/release/URI"
arch="noarch"
license="GPL-1.0+ OR Artistic-1.0-Perl"
depends="perl"
makedepends=""
checkdepends="perl-test-fatal perl-test-needs perl-test-warnings"
subpackages="$pkgname-doc"
provides="perl-uri-escape=$pkgver-r$pkgrel"
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="0fb15c93d6bfd1842a3129d31ffd4d7c9fb9c735d5f45b5aaa07609edecd1b16191b7475aebd013c7a0e92894000d6982503654d306d82d477b52b33b058644f  URI-5.21.tar.gz"