Remove needless variables; Replace find with NO_PACKLIST and NO_PERLLOCAL

This commit is contained in:
ryoskzypu 2026-02-18 15:47:57 -03:00
parent 1692e5a2f5
commit 48da0d0ec9
No known key found for this signature in database
GPG key ID: 19D6F71BA9ED3E0E
2 changed files with 6 additions and 8 deletions

View file

@ -1,7 +1,7 @@
pkgbase = perl-file-xdg
pkgdesc = Basic implementation of the XDG base directory specification
pkgver = 1.03
pkgrel = 1
pkgrel = 2
url = https://metacpan.org/module/File::XDG
arch = any
license = Artistic-1.0-Perl OR GPL-1.0-or-later

View file

@ -5,7 +5,7 @@
_dist=File-XDG
pkgname=perl-file-xdg
pkgver=1.03
pkgrel=1
pkgrel=2
pkgdesc='Basic implementation of the XDG base directory specification'
arch=('any')
url='https://metacpan.org/module/File::XDG'
@ -31,8 +31,8 @@ build()
{
cd $_dist-$pkgver
unset PERL5LIB PERL_MM_OPT PERL_LOCAL_LIB_ROOT
export PERL_MM_USE_DEFAULT=1
unset PERL_MM_OPT PERL5LIB PERL_LOCAL_LIB_ROOT
export PERL_MM_OPT='NO_PACKLIST=1 NO_PERLLOCAL=1' PERL_MM_USE_DEFAULT=1
/usr/bin/perl Makefile.PL
make
@ -43,8 +43,7 @@ check()
{
cd $_dist-$pkgver
unset PERL5LIB PERL_MM_OPT PERL_LOCAL_LIB_ROOT
export PERL_MM_USE_DEFAULT=1
unset PERL5LIB PERL_LOCAL_LIB_ROOT
make test
}
@ -53,8 +52,7 @@ package()
{
cd $_dist-$pkgver
unset PERL5LIB PERL_MM_OPT PERL_LOCAL_LIB_ROOT
unset PERL5LIB PERL_LOCAL_LIB_ROOT
make install INSTALLDIRS=vendor DESTDIR="$pkgdir"
find "$pkgdir" \( -name .packlist -o -name perllocal.pod \) -delete
}