summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorAnton Leontiev2020-03-14 10:52:46 +0300
committerAnton Leontiev2020-03-14 10:52:46 +0300
commite48c2c9637b0c6e43bcb56d7d188a4cc4643f07f (patch)
tree912829e6e0760a1b50119a1838bdd9d435203341
parent71bdf7f2d30bbe29f98fcf48c96323c28d263609 (diff)
downloadaur-perl-io-handle-util.tar.gz
Update to v0.02
This commit also fixes command to remove .packlist and perllocal.pod.
-rw-r--r--.SRCINFO11
-rw-r--r--PKGBUILD46
-rw-r--r--PKGBUILD.tt38
3 files changed, 55 insertions, 40 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 1d30b4fc86e..bb6dc857125 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,19 +1,18 @@
pkgbase = perl-io-handle-util
pkgdesc = Perl module with functions for working with IO::Handle like objects
- pkgver = 0.01
+ pkgver = 0.02
pkgrel = 1
- url = http://search.cpan.org/dist/IO-Handle-Util
+ url = https://metacpan.org/release/IO-Handle-Util
arch = any
license = PerlArtistic
license = GPL
- checkdepends = perl-test-use-ok
- depends = perl
+ makedepends = perl-module-build-tiny>=0.034
depends = perl-asa
depends = perl-io-string
depends = perl-sub-exporter
options = !emptydirs
- source = http://search.cpan.org/CPAN/authors/id/N/NU/NUFFIN/IO-Handle-Util-0.01.tar.gz
- md5sums = ece953bc43c2e5914f92ec186cba0086
+ source = http://search.cpan.org/CPAN/authors/id/E/ET/ETHER/IO-Handle-Util-0.02.tar.gz
+ md5sums = a334bd3fc284d176e0aaccb1b65b4279
pkgname = perl-io-handle-util
diff --git a/PKGBUILD b/PKGBUILD
index 1e4bca1060f..2dacab19191 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,33 +1,41 @@
# CPAN Name : IO::Handle::Util
-# Contributor: Anton Leontiev <bunder /at/ t-25.ru>
-# Generator : CPANPLUS::Dist::Arch 1.13
+# Contributor: Anton Leontiev <scileont /at/ gmail.com>
+# Generator : CPANPLUS::Dist::Arch 1.32
pkgname=perl-io-handle-util
-pkgver=0.01
+pkgver=0.02
pkgrel=1
-pkgdesc="Perl module with functions for working with IO::Handle like objects"
-arch=("any")
-url="http://search.cpan.org/dist/IO-Handle-Util"
-license=("PerlArtistic" "GPL")
-depends=("perl" "perl-asa" "perl-io-string" "perl-sub-exporter")
-checkdepends=("perl-test-use-ok")
-source=(http://search.cpan.org/CPAN/authors/id/N/NU/NUFFIN/IO-Handle-Util-0.01.tar.gz)
+pkgdesc='Perl module with functions for working with IO::Handle like objects'
+arch=('any')
+url='https://metacpan.org/release/IO-Handle-Util'
+license=('PerlArtistic' 'GPL')
+makedepends=('perl-module-build-tiny>=0.034')
+depends=('perl-asa' 'perl-io-string' 'perl-sub-exporter')
+source=(http://search.cpan.org/CPAN/authors/id/E/ET/ETHER/IO-Handle-Util-0.02.tar.gz)
options=(!emptydirs)
-md5sums=("ece953bc43c2e5914f92ec186cba0086")
+md5sums=('a334bd3fc284d176e0aaccb1b65b4279')
+
+sanitize() {
+ unset PERL5LIB PERL_MM_OPT PERL_MB_OPT PERL_LOCAL_LIB_ROOT
+ export PERL_MM_USE_DEFAULT=1 PERL_AUTOINSTALL="--skipdeps" MODULEBUILDRC=/dev/null
+}
build() {
- cd "$srcdir/IO-Handle-Util-0.01"
- PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
- make
+ cd IO-Handle-Util-0.02
+ sanitize
+ perl Makefile.PL INSTALLDIRS=vendor
+ make
}
check() {
- cd "$srcdir/IO-Handle-Util-0.01"
- make test
+ cd IO-Handle-Util-0.02
+ sanitize
+ make test
}
package() {
- cd "$srcdir/IO-Handle-Util-0.01"
- make install DESTDIR="$pkgdir"
- find "$pkgdir" -name .packlist -o -name perllocal.pod -delete
+ cd IO-Handle-Util-0.02
+ sanitize
+ make install DESTDIR="$pkgdir"
+ find "$pkgdir" \( -name .packlist -o -name perllocal.pod \) -delete
}
diff --git a/PKGBUILD.tt b/PKGBUILD.tt
index 5a33bc55306..6643f867b5a 100644
--- a/PKGBUILD.tt
+++ b/PKGBUILD.tt
@@ -5,29 +5,37 @@
pkgname=[% pkgname %]
pkgver=[% pkgver %]
pkgrel=[% pkgrel %]
-pkgdesc="Perl module with functions for working with IO::Handle like objects"
-arch=("any")
-url="[% url %]"
-license=("PerlArtistic" "GPL")
-depends=("perl" "perl-asa" "perl-io-string" "perl-sub-exporter")
-checkdepends=("perl-test-use-ok")
+pkgdesc='Perl module with functions for working with IO::Handle like objects'
+arch=('any')
+url='[% url %]'
+license=('PerlArtistic' 'GPL')
+makedepends=('perl-module-build-tiny>=0.034')
+depends=('perl-asa' 'perl-io-string' 'perl-sub-exporter')
source=([% source %])
options=(!emptydirs)
-md5sums=("[% md5sums %]")
+md5sums=('[% md5sums %]')
+
+sanitize() {
+ unset PERL5LIB PERL_MM_OPT PERL_MB_OPT PERL_LOCAL_LIB_ROOT
+ export PERL_MM_USE_DEFAULT=1 PERL_AUTOINSTALL="--skipdeps" MODULEBUILDRC=/dev/null
+}
build() {
- cd "$srcdir/[% distdir %]"
- PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
- make
+ cd [% distdir %]
+ sanitize
+ perl Makefile.PL INSTALLDIRS=vendor
+ make
}
check() {
- cd "$srcdir/[% distdir %]"
- make test
+ cd [% distdir %]
+ sanitize
+ make test
}
package() {
- cd "$srcdir/[% distdir %]"
- make install DESTDIR="$pkgdir"
- find "$pkgdir" -name .packlist -o -name perllocal.pod -delete
+ cd [% distdir %]
+ sanitize
+ make install DESTDIR="$pkgdir"
+ find "$pkgdir" \( -name .packlist -o -name perllocal.pod \) -delete
}