aboutsummaryrefslogtreecommitdiffstats
path: root/main/perl-http-cookies/APKBUILD
blob: 5ec0daced4afb85c9a67a22223cacab81fb2aaee (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
# Contributor: Natanael Copa <ncopa@alpinelinux.org>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=perl-http-cookies
_pkgreal=HTTP-Cookies
pkgver=6.04
pkgrel=0
pkgdesc="HTTP::Cookies perl module"
url="http://search.cpan.org/dist/HTTP-Cookies/"
arch="noarch"
license="GPL-2.0 or Artistic"
depends="perl perl-http-date perl-http-message"
makedepends="perl-dev"
replaces="perl-libwww"
subpackages="$pkgname-doc"
source="http://search.cpan.org/CPAN/authors/id/O/OA/OALDERS/$_pkgreal-$pkgver.tar.gz"

builddir="$srcdir/$_pkgreal-$pkgver"

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

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

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

sha512sums="e8b24b96e6630f1238e828edfbf7074fb9186a391fd1d129fb65a82748a4cf7d71669fa658c31957560a6faac3e638c8dc7aa3182acaa6fd14f0d56f3968f5e4  HTTP-Cookies-6.04.tar.gz"