summaryrefslogtreecommitdiffstats
path: root/main/perl-html-formattext-withlinks/APKBUILD
blob: 2b86e348c60052d59a7fd768159929924a48a242 (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
40
41
# Automatically generated by apkbuild-cpan, template 1
# Contributor: Leonardo Arena <rnalrd@alpinelinux.org>
# Maintainer: Leonardo Arena <rnalrd@alpinelinux.org>
pkgname=perl-html-formattext-withlinks
_pkgreal=HTML-FormatText-WithLinks
pkgver=0.14
pkgrel=0
pkgdesc="HTML to text conversion with links as footnotes"
url="http://search.cpan.org/dist/HTML-FormatText-WithLinks/"
arch="noarch"
license="GPL PerlArtistic"
cpandepends="perl-html-format perl-uri perl-html-tree"
cpanmakedepends="   "
depends="$cpandepends"
makedepends="perl-dev $cpanmakedepends"
subpackages="$pkgname-doc"
source="http://search.cpan.org/CPAN/authors/id/S/ST/STRUAN/$_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
}

md5sums="264a1436883d20b81e669c65a1f97367  HTML-FormatText-WithLinks-0.14.tar.gz"
sha256sums="35ececbc8a3ceda23e03c1e88b1e1ba02193deb455630d093ed30365e845e8ff  HTML-FormatText-WithLinks-0.14.tar.gz"
sha512sums="ec2cf859401985aaac45ba5ae1da18b3a142d51d821154ad40497a1ec468d86a6a6b85d7a1a66ec2d06bac49fe699def702c4cad86f1fa52da364cb29b6994b7  HTML-FormatText-WithLinks-0.14.tar.gz"