aboutsummaryrefslogtreecommitdiffstats
path: root/main/perl-uri/APKBUILD
blob: e945464ba558b31674b663351ea58dd44dcf9701 (plain)
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
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=perl-uri
pkgver=1.72
pkgrel=0
pkgdesc="Perl Module: form Resource Identifiers (absolute and relative)"
url="http://search.cpan.org/dist/URI/"
arch="noarch"
license="PerlArtistic"
subpackages="$pkgname-doc"
depends="perl"
makedepends="perl-dev"
checkdepends="perl-test-needs"
replaces="perl-uri-escape"
source="http://search.cpan.org/CPAN/authors/id/E/ET/ETHER/URI-$pkgver.tar.gz"

builddir="$srcdir"/URI-$pkgver

build() {
	cd "$builddir"
	perl Makefile.PL INSTALLDIRS=vendor
	make
}

check() {
	cd "$builddir"
	make test
}

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

sha512sums="804285c956efcd728569a8ca9c619ddc59d87ca686d1783f697dfee7da4d25721a565515a3e4ad39ff1e4a7239565d0e899ee88db95705804882ce43105f6186  URI-1.72.tar.gz"