29 lines
916 B
Bash
29 lines
916 B
Bash
# Maintainer: Jesus E. <heckyel@riseup.net>
|
|
|
|
pkgname=perl-time-duration
|
|
pkgver=1.21
|
|
pkgrel=1
|
|
pkgdesc="Rounded or exact English expression of durations"
|
|
arch=('any')
|
|
url="https://search.cpan.org/dist/Time-Duration"
|
|
license=('GPL-1')
|
|
depends=('perl')
|
|
makedepends=('perl-test-pod-coverage' 'perl-test-pod')
|
|
options=('!emptydirs')
|
|
source=(https://search.cpan.org/CPAN/authors/id/N/NE/NEILB/Time-Duration-$pkgver.tar.gz)
|
|
sha512sums=('2d03d73096967265f16f4ebde2d9fbb83fce591e15fa01f5f4f750123f27a4571bbd01d5d93f785f78ee8810aca9d945241e6a767b65f45abb4608d321108020')
|
|
|
|
build() {
|
|
cd "$srcdir"/Time-Duration-${pkgver}
|
|
PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
|
|
make
|
|
}
|
|
|
|
package() {
|
|
cd "$srcdir"/Time-Duration-${pkgver}
|
|
make install DESTDIR="$pkgdir"
|
|
find "$pkgdir" -name '.packlist' -delete
|
|
find "$pkgdir" -name '*.pod' -delete
|
|
install -Dm644 LICENSE -t "$pkgdir/usr/share/licenses/$pkgname"
|
|
}
|