aboutsummaryrefslogtreecommitdiffstats
path: root/community/perl-text-quoted/APKBUILD
blob: 2ab9daf4c5f7f6f4467333ce0848420729643c67 (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
# Contributor: Natanael Copa <ncopa@alpinelinux.org>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=perl-text-quoted
pkgver=2.09
pkgrel=0
pkgdesc="Text::Quoted perl module"
url="http://search.cpan.org/dist/Text-Quoted/"
arch="noarch"
license="GPLv2 or Artistic"
depends="perl perl-text-autoformat"
makedepends="perl-dev perl-module-install"
subpackages="$pkgname-doc"
source="http://search.cpan.org/CPAN/authors/id/A/AL/ALEXMV/Text-Quoted-$pkgver.tar.gz"

builddir="$srcdir/Text-Quoted-$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="c87f619458800678c49d6587f595ab5965410309c10fdf8bd39b34fb9eb06435252bbc6b95553342227f2a1947e87ad70ee61aaf8e34b11e6060cfe28f8fd4ef  Text-Quoted-2.09.tar.gz"