aboutsummaryrefslogtreecommitdiffstats
path: root/main/perl-uri/APKBUILD
blob: 5cc3a5e530df4e20b72607158b0a0027ec6b55fa (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
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=perl-uri
pkgver=1.71
pkgrel=1
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"
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="db412b75054a4d315eb861060fa4641832c2428b9dfe56bbe35f530c9ba572d4de2061d9782454750293dd5a64f3375830988d8512f410e84a9d599c80458405  URI-1.71.tar.gz"