You are not logged in.
Simple PKGBUILD file for the a line of best fit calculation module in Perl.
# Contributor: Brett Gersekowski <brettski -_AT_- b a k u n a -_Dot_- net>
pkgname=perl-statistics-linefit
pkgver=0.07
pkgrel=1
pkgdesc="perl module to calculate least squares lines of best fit, weighted and unweighted."
_dist=Statistics-LineFit
arch=('any')
url="https://metacpan.org/release/${_dist}"
license=('GPL' 'PerlArtistic')
depends=('perl')
makedepends=('perl-module-build')
options=('!emptydirs' purge)
source=("https://cpan.metacpan.org/authors/id/R/RA/RANDERSON/${_dist}-${pkgver}.tar.gz")
md5sums=('887bea828f25574163455a88dd2d1dc6')
sha512sums=('5e1c302dd7d9611a4352830dc545723d9f9be10d408de6f3b23cd4ce212b17cec958129006e783e2318c7e58501dc1312ae1322ecb848273b584f7201c1d259b')
build() {
cd "${srcdir}/${_dist}"
unset PERL5LIB PERL_MM_OPT PERL_LOCAL_LIB_ROOT
export PERL_MM_USE_DEFAULT=1 PERL_AUTOINSTALL=--skipdeps
/usr/bin/perl Makefile.PL
make
}
check() {
cd "${srcdir}/${_dist}"
unset PERL5LIB PERL_MM_OPT PERL_LOCAL_LIB_ROOT
export PERL_MM_USE_DEFAULT=1
make test
}
package() {
cd "${srcdir}/${_dist}"
unset PERL5LIB PERL_MM_OPT PERL_LOCAL_LIB_ROOT
make install INSTALLDIRS=vendor DESTDIR="${pkgdir}"
}
Offline
Looks good. Obviuosly you read the wiki?
I prefer to only have one flavour of hashes (md5sums, shaXsums), but that's just me.
Offline