summaryrefslogtreecommitdiffstats
path: root/main/perl-text-autoformat/APKBUILD
blob: 10736664765cf7c07ca0694815b8efa98da75d1d (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
# Contributor: Natanael Copa <ncopa@alpinelinux.org>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=perl-text-autoformat
pkgver=1.669004
pkgrel=0
pkgdesc="Text::Autoformat perl module"
url="http://search.cpan.org/dist/Text-Autoformat/"
arch="noarch"
license="GPLv2 or Artistic"
depends="perl perl-text-reform"
makedepends="perl-dev"
install=""
subpackages="$pkgname-doc"
source="http://search.cpan.org/CPAN/authors/id/D/DC/DCONWAY/Text-Autoformat-$pkgver.tar.gz"

_builddir="$srcdir"/Text-Autoformat-$pkgver
prepare() {
	local i
	cd "$_builddir"
	for i in $source; do
		case $i in
		*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
		esac
	done
}

build() {
	cd "$_builddir"
	PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor || return 1
	make && make test || return 1
}

package() {
	cd "$_builddir"
	make DESTDIR="$pkgdir" install || return 1
	find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
}

md5sums="7a7881ca625fa71e551c1f43910f2865  Text-Autoformat-1.669004.tar.gz"
sha256sums="27a0d5f7f4665906c25c3f19e84575bff06c9bcc3c217410b600ec0675322a54  Text-Autoformat-1.669004.tar.gz"
sha512sums="7a46d32580fc4154a1a5771cb95bf9f1bae8063ab22fc63e4baf00d29693873b305cc14b825a74c7154c3347ba5167f021499cb70000924546b909c5bc741dac  Text-Autoformat-1.669004.tar.gz"