diff options
author | Viktor Drobot | 2020-05-14 21:11:20 +0300 |
---|---|---|
committer | Viktor Drobot | 2020-05-14 21:11:20 +0300 |
commit | 77dc3f096d6ab4aee9af61274149d6f7c7ec2ffd (patch) | |
tree | 2d7bb4f897261ab24421425178f671a78da72c52 | |
download | aur-77dc3f096d6ab4aee9af61274149d6f7c7ec2ffd.tar.gz |
First release
-rw-r--r-- | .SRCINFO | 20 | ||||
-rw-r--r-- | PKGBUILD | 40 |
2 files changed, 60 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..8b67e59e7b4b --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,20 @@ +pkgbase = perl-chemistry-mol + pkgdesc = Molecule object toolkit + pkgver = 0.37 + pkgrel = 1 + url = https://metacpan.org/pod/Chemistry::Mol + arch = any + license = GPL + license = PerlArtistic + depends = perl + depends = perl-math-vectorreal>=1.0 + depends = perl-scalar-util>=1.01 + depends = perl-test-simple + depends = perl-text-balanced + options = purge + options = !emptydirs + source = https://cpan.metacpan.org/authors/id/I/IT/ITUB/Chemistry-Mol-0.37.tar.gz + md5sums = b3826c67e866a99169f3cfec1205642a + +pkgname = perl-chemistry-mol + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..762d98423877 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,40 @@ +# Maintainer: Viktor Drobot (aka dviktor) linux776 [at] gmail [dot] com + +pkgname=perl-chemistry-mol +pkgver=0.37 +pkgrel=1 +pkgdesc="Molecule object toolkit" +_dist="Chemistry-Mol" +arch=(any) +url="https://metacpan.org/pod/Chemistry::Mol" +license=(GPL PerlArtistic) +depends=(perl 'perl-math-vectorreal>=1.0' 'perl-scalar-util>=1.01' perl-test-simple perl-text-balanced) +options=(purge !emptydirs) +source=("https://cpan.metacpan.org/authors/id/I/IT/ITUB/${_dist}-${pkgver}.tar.gz") +md5sums=('b3826c67e866a99169f3cfec1205642a') + +build() { + cd "${srcdir}/${_dist}-${pkgver}" + + 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}-${pkgver}" + + unset PERL5LIB PERL_MM_OPT PERL_LOCAL_LIB_ROOT + export PERL_MM_USE_DEFAULT=1 + + make test +} + +package() { + cd "${srcdir}/${_dist}-${pkgver}" + + unset PERL5LIB PERL_MM_OPT PERL_LOCAL_LIB_ROOT + make install INSTALLDIRS=vendor DESTDIR="${pkgdir}" +} |