Files
extra/perl-file-which/PKGBUILD
2025-06-22 20:39:04 -05:00

27 lines
747 B
Bash

# Maintainer: Jesus E. <heckyel@riseup.net>
pkgname=perl-file-which
_realname=File-Which
pkgver=1.27
pkgrel=1
pkgdesc="Portable implementation of which"
arch=('any')
url='https://metacpan.org/dist/$_realname'
license=('GPL-1')
depends=('perl')
options=('!emptydirs')
source=("https://cpan.metacpan.org/authors/id/P/PL/PLICEASE/$_realname-$pkgver.tar.gz")
sha512sums=('8a6164c4af915e93924b1d62864e492b1c5067856e505c50b9a5cce0600d73bdcda5f7e35a9f37134d9e89949b45bbd0a5426cb56121604aea1a3cfe48d55e5c')
build() {
cd $_realname-$pkgver
PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
make
}
package() {
cd $_realname-$pkgver
make DESTDIR="$pkgdir" install
install -Dm644 LICENSE -t "${pkgdir}/usr/share/licenses/${pkgname}/"
}