aboutsummaryrefslogblamecommitdiffstats
path: root/community/perl-lingua-en-numbers-ordinate/APKBUILD
blob: 6ae4a4ae748939909f06f6988badb114721b5b5f (plain) (tree)
1
2
3
4
5
6
7
8
9
                                                     
                                                          
                                       
           
        
                                                 
                                                             
             
             

                          
                          
                                                                                                  
 
                                                     

         







                                                                 


           

                                      


                                                                           
                                                                                                                                                                                     
# Contributor: Carlo Landmeter <clandmeter@gmail.com>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=perl-lingua-en-numbers-ordinate
pkgver=1.04
pkgrel=2
pkgdesc="Go from cardinal (53) to ordinal (53rd)"
url="https://metacpan.org/release/Lingua-EN-Numbers-Ordinate"
arch="noarch"
license="GPL"
depends_dev="perl-dev"
makedepends="$depends_dev"
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() {
	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="f8f5cbfc9ae1d7b4e5e134c8fb089f6ec4ecfd90e0168ece874b007ae8b74936e5aecc38344c036c0845ab7a8c192d07c5a2cdad8f96176c71e89e2e4ae1211e  Lingua-EN-Numbers-Ordinate-1.04.tar.gz"