diff options
author | Alexander Pohl | 2019-05-04 10:43:53 +0200 |
---|---|---|
committer | Alexander Pohl | 2019-05-04 10:43:53 +0200 |
commit | 28ba84a39cfe69efe85ceee958fa421ed2ee7263 (patch) | |
tree | 6bbe4e1b76afd6fc43279cb696082a8ff0f401b6 | |
download | aur-perl-device-inverter-aurora.tar.gz |
perl-device-inverter-aurora initial commit
-rw-r--r-- | .SRCINFO | 17 | ||||
-rw-r--r-- | PKGBUILD | 35 |
2 files changed, 52 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..95e118d0272a --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,17 @@ +pkgbase = perl-device-inverter-aurora + pkgdesc = Module for communicating with Power-One Aurora inverters, containing the Device::Inverter::Aurora module + pkgver = 0.05 + pkgrel = 1 + url = https://metacpan.org/release/Device-Inverter-Aurora + arch = any + license = GPL + license = PerlArtistic + depends = perl + depends = perl-device-serialport + options = !emptydirs + options = purge + source = https://cpan.metacpan.org/authors/id/F/FR/FREMAN/Device-Inverter-Aurora-0.05.tar.gz + md5sums = e26305a788b7be148339aa60a1701b4a + +pkgname = perl-device-inverter-aurora + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..42819f29fd23 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,35 @@ +# Contributor: Alexander Pohl <alex at ahpohl dot com> +pkgname=perl-device-inverter-aurora +pkgver=0.05 +pkgrel=1 +pkgdesc='Module for communicating with Power-One Aurora inverters, containing the Device::Inverter::Aurora module' +_dist=Device-Inverter-Aurora +arch=('any') +url="https://metacpan.org/release/$_dist" +license=('GPL' 'PerlArtistic') +depends=('perl' 'perl-device-serialport') +options=('!emptydirs' purge) +source=("https://cpan.metacpan.org/authors/id/F/FR/FREMAN/$_dist-$pkgver.tar.gz") +md5sums=('e26305a788b7be148339aa60a1701b4a') + +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" +} + |