blob: 278a82479c176d146c1b0c2e34cbdcefa6563558 (
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
37
38
39
|
# Automatically generated by apkbuild-cpan, template 1
# Contributor: Timo Teräs <timo.teras@iki.fi>
# Maintainer: Timo Teräs <timo.teras@iki.fi>
pkgname=perl-html-tree
_pkgreal=HTML-Tree
pkgver=5.03
pkgrel=0
pkgdesc="Work with HTML in a DOM-like tree structure"
url="http://search.cpan.org/dist/HTML-Tree/"
arch="noarch"
license="GPL PerlArtistic"
cpandepends="perl-html-tagset perl-html-parser"
cpanmakedepends="perl-test-fatal"
depends="$cpandepends"
makedepends="perl-dev $cpanmakedepends perl-module-build"
subpackages="$pkgname-doc"
source="http://search.cpan.org/CPAN/authors/id/C/CJ/CJM/$_pkgreal-$pkgver.tar.gz"
_builddir="$srcdir/$_pkgreal-$pkgver"
prepare() {
cd "$_builddir"
export CFLAGS=`perl -MConfig -E 'say $Config{ccflags}'`
perl Build.PL installdirs=vendor || return 1
}
build() {
cd "$_builddir"
export CFLAGS=`perl -MConfig -E 'say $Config{ccflags}'`
./Build && ./Build test
}
package() {
cd "$_builddir"
./Build install destdir="$pkgdir" || return 1
find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
}
sha512sums="fc1c04c3958c51c23060fd74db7d519b70e19d67ca5bd22ac78414c9d592e88f344fbd6a824b80b0b2e99d1a1ad38df141ef8d7dd2703e6dd16c8dc948c31b5f HTML-Tree-5.03.tar.gz"
|