mirror of
https://gitdl.cn/https://github.com/chakralinux/core.git
synced 2025-02-04 00:57:14 +08:00
33 lines
878 B
Bash
33 lines
878 B
Bash
# Platform Packages for Chakra, part of chakra-project.org
|
|
|
|
pkgname=perl-digest-nilsimsa
|
|
_realname=Digest-Nilsimsa
|
|
pkgver=0.06
|
|
pkgrel=6
|
|
pkgdesc="Perl version of Nilsimsa code."
|
|
arch=('i686' 'x86_64')
|
|
license=('LGPL')
|
|
url="http://search.cpan.org/dist/${_realname}/"
|
|
depends=('perl>=5.14.2')
|
|
options=(!emptydirs)
|
|
source=(http://www.cpan.org/authors/id/V/VI/VIPUL/${_realname}-${pkgver}.tar.gz)
|
|
replaces=('digest-nilsimsa')
|
|
provides=('digest-nilsimsa')
|
|
md5sums=('08e940bd7f5d1167ef3fd1aa7ce234d7')
|
|
|
|
build() {
|
|
cd ${srcdir}/${_realname}-${pkgver}
|
|
# install module in vendor directories.
|
|
PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
|
|
make
|
|
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
|
|
}
|