summaryrefslogtreecommitdiff
path: root/main/perl-html-quoted/APKBUILD
blob: b147903e1e3a50f78bd4342dc1ac38e73d5cb7ee (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
# Contributor: Natanael Copa <ncopa@alpinelinux.org>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=perl-html-quoted
pkgver=0.04
pkgrel=0
pkgdesc="HTML::Quoted perl module"
url="http://search.cpan.org/dist/HTML-Quoted/"
arch="noarch"
license="GPLv2 or Artistic"
depends="perl perl-html-parser"
makedepends="perl-dev perl-module-install"
subpackages="$pkgname-doc"
source="http://search.cpan.org/CPAN/authors/id/T/TS/TSIBLEY/HTML-Quoted-$pkgver.tar.gz"

builddir="$srcdir/HTML-Quoted-$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="a13fb07d683741ec32679780d7183c849c534fb79e2b5f5613f9142e2b877938712d8bf20bb1e540ad5f4532cd7f2fcbf42bc3be5e931d7a4a2ae12bd0af0cc0  HTML-Quoted-0.04.tar.gz"