mirror of
https://gitdl.cn/https://github.com/chakralinux/core.git
synced 2025-02-03 12:47:16 +08:00
36 lines
896 B
Bash
36 lines
896 B
Bash
# Platform Packages for Chakra, part of chakra-project.org
|
|
|
|
pkgname=perl-passwd-md5
|
|
_realname=Crypt-PasswdMD5
|
|
pkgver=1.3
|
|
pkgrel=5
|
|
pkgdesc="Provides a crypt()-compatible interface to new MD5-based crypt()"
|
|
arch=(any)
|
|
license=('GPL' 'PerlArtistic')
|
|
url="http://search.cpan.org/dist/${_realname}/"
|
|
depends=('perl')
|
|
options=('!emptydirs')
|
|
source=("http://search.cpan.org/CPAN/authors/id/L/LU/LUISMUNOZ/${_realname}-$pkgver.tar.gz")
|
|
md5sums=('368205b1be8c0d4f807afe25d6fbd1ad')
|
|
|
|
build() {
|
|
cd $srcdir/${_realname}-$pkgver
|
|
# install module in vendor directories.
|
|
PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
|
|
make
|
|
}
|
|
|
|
check() {
|
|
cd $srcdir/${_realname}-$pkgver
|
|
make test
|
|
}
|
|
|
|
package() {
|
|
cd $srcdir/${_realname}-$pkgver
|
|
make install DESTDIR=${pkgdir}
|
|
|
|
# remove perllocal.pod and .packlist
|
|
find ${pkgdir} -name perllocal.pod -delete
|
|
find ${pkgdir} -name .packlist -delete
|
|
}
|