Files
extra/perl-datetime-locale/PKGBUILD
2025-06-22 20:39:04 -05:00

29 lines
966 B
Bash

# Maintainer: Jesus E. <heckyel@riseup.net>
pkgname=perl-datetime-locale
pkgver=1.31
pkgrel=1
pkgdesc="Localization support for DateTime.pm "
arch=('any')
url='https://search.cpan.org/dist/DateTime-Locale'
license=('GPL-1' 'Expat')
depends=('perl-params-validate' 'perl-list-moreutils'
'perl-file-sharedir' 'perl-file-sharedir-install')
options=('!emptydirs')
source=(https://www.cpan.org/authors/id/D/DR/DROLSKY/DateTime-Locale-$pkgver.tar.gz)
sha512sums=('2ac1dc90f43fd3676d5e953531976880cc9b83988c402a6ca3ab68b31c73ab499440c29a6a3cffba8f208c6aacc6718571effd9abcc7a1fccc563e3c665924c1')
build() {
cd "$srcdir"/DateTime-Locale-$pkgver
PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
make
}
package() {
cd "$srcdir"/DateTime-Locale-$pkgver
make install DESTDIR="$pkgdir"
find "$pkgdir" -name '.packlist' -delete
find "$pkgdir" -name '*.pod' -delete
install -Dm644 LICENSE LICENSE.cldr -t "${pkgdir}/usr/share/licenses/${pkgname}/"
}