mirror of
https://gitdl.cn/https://github.com/chakralinux/core.git
synced 2025-02-12 05:04:45 +08:00
26 lines
614 B
Bash
26 lines
614 B
Bash
|
|
pkgname=perl-file-which
|
|
_realname=File-Which
|
|
pkgver=1.22
|
|
pkgrel=1
|
|
pkgdesc="Portable implementation of which"
|
|
arch=('x86_64')
|
|
url="http://search.cpan.org/dist/File-Which"
|
|
license=(GPL PerlArtistic)
|
|
depends=(perl)
|
|
options=('!emptydirs')
|
|
_author=PLICEASE
|
|
source=("https://www.cpan.org/authors/id/${_author:0:1}/${_author:0:2}/$_author/${_realname}-${pkgver}.tar.gz")
|
|
md5sums=('face60fafd220dc83fa581ef6f96d480')
|
|
|
|
build() {
|
|
cd "$srcdir/${_realname}-${pkgver}"
|
|
PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
|
|
make
|
|
}
|
|
|
|
package() {
|
|
cd "$srcdir/${_realname}-${pkgver}"
|
|
make install DESTDIR="$pkgdir"
|
|
}
|