unset environment variables

This commit is contained in:
Alad Wenter 2024-05-04 17:54:39 +02:00
parent c3171a89f4
commit ad56b02a7b
2 changed files with 7 additions and 3 deletions

View file

@ -1,7 +1,7 @@
pkgbase = perl-file-xdg
pkgdesc = CPAN/File::XDG -- basic implementation of the XDG base directory spec
pkgver = 1.02
pkgrel = 1
pkgrel = 2
url = https://metacpan.org/module/File::XDG
arch = any
license = GPL

View file

@ -1,9 +1,10 @@
# Maintainer: Brian Bidulock <bidulock@openss7.org>
# Maintainer: Alad Wenter <alad@archlinux.org>
# Contributor: Brian Bidulock <bidulock@openss7.org>
pkgname=perl-file-xdg
_cpanname=File-XDG
pkgver=1.02
pkgrel=1
pkgrel=2
pkgdesc="CPAN/File::XDG -- basic implementation of the XDG base directory spec"
arch=('any')
url="https://metacpan.org/module/File::XDG"
@ -15,13 +16,16 @@ md5sums=('162aafd0414382491f11f9ef6e85aae7')
build() {
cd $_cpanname-$pkgver
unset PERL5LIB PERL_MM_OPT PERL_LOCAL_LIB_ROOT
PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
make
}
package() {
cd $_cpanname-$pkgver
unset PERL5LIB PERL_MM_OPT PERL_LOCAL_LIB_ROOT
make DESTDIR="$pkgdir" install
find "$pkgdir" -name '.packlist' -delete
find "$pkgdir" -name '*.pod' -delete
}