Files
extra/perl-data-optlist/PKGBUILD
2025-06-22 20:39:04 -05:00

34 lines
1008 B
Bash

# Maintainer: Jesus E. <heckyel@riseup.net>
pkgname=perl-data-optlist
pkgver=0.110
pkgrel=1
pkgdesc="Parse and validate simple name/value option pairs"
arch=('any')
url='https://metacpan.org/release/Data-OptList'
license=('GPL-1')
options=('!emptydirs')
depends=('perl-params-util' 'perl-sub-install')
source=(https://search.cpan.org/CPAN/authors/id/R/RJ/RJBS/Data-OptList-$pkgver.tar.gz)
sha512sums=('68393958a38f509a71cfba61f6dff8303821918ba29ad8492af0c23cfd4f741c6ce98c4f68ad295f27e166287fc546229c430816f0bdd6009d4f60860c967b76')
build() {
( export PERL_MM_USE_DEFAULT=1 PERL5LIB="" \
PERL_AUTOINSTALL=--skipdeps \
PERL_MM_OPT="INSTALLDIRS=vendor" \
PERL_MB_OPT="--installdirs vendor" \
MODULEBUILDRC=/dev/null
cd "$srcdir"/Data-OptList-$pkgver
/usr/bin/perl Makefile.PL
make
)
}
package() {
cd "$srcdir"/Data-OptList-$pkgver
make DESTDIR="$pkgdir"/ install
install -Dm644 LICENSE -t "${pkgdir}/usr/share/licenses/${pkgname}/"
}