summaryrefslogtreecommitdiff
path: root/community/perl-lingua-en-numbers-ordinate/APKBUILD
blob: d6fef7b9166d249789dff8ae4e00e719588d0520 (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
# Contributor: Carlo Landmeter <clandmeter@alpinelinux.org>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=perl-lingua-en-numbers-ordinate
pkgver=1.05
pkgrel=0
pkgdesc="Go from cardinal (53) to ordinal (53rd)"
url="https://metacpan.org/release/Lingua-EN-Numbers-Ordinate"
arch="noarch"
license="GPL"
depends="perl"
subpackages="$pkgname-doc"
source="https://cpan.metacpan.org/authors/id/N/NE/NEILB/Lingua-EN-Numbers-Ordinate-$pkgver.tar.gz"

builddir="$srcdir/Lingua-EN-Numbers-Ordinate-$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="ff9d2b49e933c3975ce4598a2ac4719c52a2c3e07e3ff6bc82cdb43ec05a63e1c2931d49e23e526aee75cb1a3c368e7692459f6d6487f16dc3b6c36ee9a8337e  Lingua-EN-Numbers-Ordinate-1.05.tar.gz"