aboutsummaryrefslogtreecommitdiffstats
path: root/community/perl-text-charwidth/APKBUILD
blob: 51f7a6353f9779ab183d6c7a413d30f0eb93fbf6 (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
# Contributor: Keith Maxwell <keith.maxwell@gmail.com>
# Maintainer: Keith Maxwell <keith.maxwell@gmail.com>
pkgname=perl-text-charwidth
pkgver=0.04
pkgrel=2
pkgdesc="Text:CharWidth perl module"
url="https://metacpan.org/pod/Text::CharWidth"
arch="all"
license="GPL-1.0-or-later OR Artistic-1.0-Perl"
makedepends="perl-dev"
subpackages="$pkgname-doc"
source="https://cpan.metacpan.org/authors/id/K/KU/KUBOTA/Text-CharWidth-$pkgver.tar.gz"
builddir="$srcdir/Text-CharWidth-$pkgver"

build() {
	PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
	make
}

check() {
	make test
}

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

sha512sums="8ec7898fcd4a3bb6e9e36fbd50c28e023298f830fce33dafd1445de97732b337d3a6f9a075059a56592d0f118ba83c45e61fa4fd4a6d3bfbb2cd25215a061e1c  Text-CharWidth-0.04.tar.gz"