From 9628278094e3b3b2b02609c51396ca8b01d03eda Mon Sep 17 00:00:00 2001 From: Cedric Girard Date: Fri, 4 Apr 2014 17:10:35 +0200 Subject: [PATCH 1/2] package RRD::Editor --- .SRCINFO | 15 +++++++++++++++ PKGBUILD | 31 +++++++++++++++++++++++++++++++ 2 files changed, 46 insertions(+) create mode 100644 .SRCINFO create mode 100644 PKGBUILD diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 0000000..0092758 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,15 @@ +pkgbase = perl-rrd-editor + pkgdesc = Portable, standalone (no need for RRDs.pm) tool to create and edit RRD files + pkgver = 0.17 + pkgrel = 1 + url = http://search.cpan.org/~DOUGLEITH/RRD-Editor-0.17/ + arch = any + license = GPL + license = PerlArtistic + depends = perl>=5.10.0 + options = !emptydirs + source = http://cpan.perl.org/modules/by-authors/id/D/DO/DOUGLEITH/RRD-Editor-0.17.tar.gz + md5sums = 0abe5d633c7609daec8dc287ef03ddef + +pkgname = perl-rrd-editor + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 0000000..83eee36 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,31 @@ +# Maintainer: Cedric Girard +_author=DOUGLEITH +_perlmod=RRD-Editor +pkgname=perl-rrd-editor +pkgver=0.17 +pkgrel=1 +pkgdesc="Portable, standalone (no need for RRDs.pm) tool to create and edit RRD files" +arch=('any') +url="http://search.cpan.org/~$_author/$_perlmod-$pkgver/" +license=('GPL' 'PerlArtistic') +depends=('perl>=5.10.0') +options=(!emptydirs) +source=(http://cpan.perl.org/modules/by-authors/id/D/DO/$_author/$_perlmod-$pkgver.tar.gz) +md5sums=('0abe5d633c7609daec8dc287ef03ddef') + +build() { + cd "$srcdir/$_perlmod-$pkgver" + + # Install module in vendor directories. + PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor + make + +} + +package() { + cd "$srcdir/$_perlmod-$pkgver" + make install DESTDIR="$pkgdir/" + +} + +# vim:set ts=2 sw=2 et: From a626d774ecb73c5a3bd8357a0520b07613c71e4d Mon Sep 17 00:00:00 2001 From: Cedric Girard Date: Tue, 17 Mar 2015 11:26:10 +0100 Subject: [PATCH 2/2] RRD::Editor PKGBUILD updated to 0.18 --- .SRCINFO | 8 ++++---- PKGBUILD | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/.SRCINFO b/.SRCINFO index 0092758..a0b8f08 100644 --- a/.SRCINFO +++ b/.SRCINFO @@ -1,15 +1,15 @@ pkgbase = perl-rrd-editor pkgdesc = Portable, standalone (no need for RRDs.pm) tool to create and edit RRD files - pkgver = 0.17 + pkgver = 0.18 pkgrel = 1 - url = http://search.cpan.org/~DOUGLEITH/RRD-Editor-0.17/ + url = https://metacpan.org/release/RRD-Editor arch = any license = GPL license = PerlArtistic depends = perl>=5.10.0 options = !emptydirs - source = http://cpan.perl.org/modules/by-authors/id/D/DO/DOUGLEITH/RRD-Editor-0.17.tar.gz - md5sums = 0abe5d633c7609daec8dc287ef03ddef + source = http://cpan.perl.org/modules/by-authors/id/D/DO/DOUGLEITH/RRD-Editor-0.18.tar.gz + md5sums = 48c7cf8567f72316bde7df655d9fd473 pkgname = perl-rrd-editor diff --git a/PKGBUILD b/PKGBUILD index 83eee36..791f1d7 100644 --- a/PKGBUILD +++ b/PKGBUILD @@ -2,16 +2,16 @@ _author=DOUGLEITH _perlmod=RRD-Editor pkgname=perl-rrd-editor -pkgver=0.17 +pkgver=0.18 pkgrel=1 pkgdesc="Portable, standalone (no need for RRDs.pm) tool to create and edit RRD files" arch=('any') -url="http://search.cpan.org/~$_author/$_perlmod-$pkgver/" +url="https://metacpan.org/release/$_perlmod" license=('GPL' 'PerlArtistic') depends=('perl>=5.10.0') options=(!emptydirs) -source=(http://cpan.perl.org/modules/by-authors/id/D/DO/$_author/$_perlmod-$pkgver.tar.gz) -md5sums=('0abe5d633c7609daec8dc287ef03ddef') +source=(http://cpan.perl.org/modules/by-authors/id/${_author:0:1}/${_author:0:2}/$_author/$_perlmod-$pkgver.tar.gz) +md5sums=('48c7cf8567f72316bde7df655d9fd473') build() { cd "$srcdir/$_perlmod-$pkgver"