aboutsummaryrefslogtreecommitdiffstats
path: root/main/perl-html-formattext-withlinks/APKBUILD
blob: 9d2bb9ed81ed7fa46543b9250b29fe0c61bb4f2b (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.15
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 perl-module-build"
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="e048c41f600895182df327c6ce9b2cc0  HTML-FormatText-WithLinks-0.15.tar.gz"
sha256sums="7fcc1ab79eb58fb97d43e5bdd14e21791a250a204998918c62d6a171131833b1  HTML-FormatText-WithLinks-0.15.tar.gz"
sha512sums="cdec4ba94c3f9dfd4e9c8b03be0e24068b23b634499bce062e0b281b26ad3a0288c0d4cc35b4db62fd81ad5f0a0f9ce42a59478af10a81ca2f5901ab79cdf550  HTML-FormatText-WithLinks-0.15.tar.gz"