aboutsummaryrefslogtreecommitdiffstats
path: root/main/perl-text-autoformat/APKBUILD
blob: dafe9c7c58c416b06b48e6958d89cdbf0ca4cec4 (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
# Contributor: Natanael Copa <ncopa@alpinelinux.org>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=perl-text-autoformat
_pkgname=Text-Autoformat
pkgver=1.74
pkgrel=0
pkgdesc="Text::Autoformat perl module"
url="http://search.cpan.org/dist/Text-Autoformat/"
arch="noarch"
license="GPL-2.0 or Artistic"
depends="perl perl-text-reform"
makedepends="perl-dev"
subpackages="$pkgname-doc"
source="http://search.cpan.org/CPAN/authors/id/N/NE/NEILB/$_pkgname-$pkgver.tar.gz"

builddir="$srcdir/$_pkgname-$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="276e97a0db20032919a6aeacba701350fa8fadf6c1bda7dcda714ef4f1c168b8cc3150a126719d940194c8b20dd534543ec914f03c50e27e4a61b1083ca312c6  Text-Autoformat-1.74.tar.gz"