From 1520c9da4828fec4176ac341783f004b1165c1e9 Mon Sep 17 00:00:00 2001 From: Giovanni Harting <539@idlegandalf.com> Date: Sat, 23 Mar 2024 19:51:13 +0100 Subject: [PATCH] upgpkg: perl-filehandle-unget 0.1634-3 formatting --- perl-filehandle-unget/.SRCINFO | 5 ++--- perl-filehandle-unget/PKGBUILD | 17 ++++++++--------- 2 files changed, 10 insertions(+), 12 deletions(-) diff --git a/perl-filehandle-unget/.SRCINFO b/perl-filehandle-unget/.SRCINFO index 4fe7e48..695097f 100644 --- a/perl-filehandle-unget/.SRCINFO +++ b/perl-filehandle-unget/.SRCINFO @@ -4,14 +4,13 @@ pkgbase = perl-filehandle-unget pkgrel = 3 url = http://search.cpan.org/dist/FileHandle-Unget arch = any - license = GPL - license = PerlArtistic + license = GPL-2.0-only checkdepends = perl-test-compile checkdepends = perl-file-slurper checkdepends = perl-universal-require depends = perl options = !emptydirs - source = http://cpan.perl.org/modules/by-module/FileHandle/FileHandle-Unget-0.1634.tar.gz + source = perl-filehandle-unget-0.1634.tar.gz::http://cpan.perl.org/modules/by-module/FileHandle/FileHandle-Unget-0.1634.tar.gz b2sums = b7f4993e1247ac5b80828ba56137acde6660576934d42abb9628ef4afbd82b69849a95670625ce56044c12636fc81b5aab4297135b17cc4af2f4651beabaff4a pkgname = perl-filehandle-unget diff --git a/perl-filehandle-unget/PKGBUILD b/perl-filehandle-unget/PKGBUILD index 6bcf523..014dc62 100644 --- a/perl-filehandle-unget/PKGBUILD +++ b/perl-filehandle-unget/PKGBUILD @@ -1,22 +1,21 @@ # Maintainer: Giovanni Harting <539@idlegandalf.com> -_perlmod=FileHandle-Unget -_modnamespace=FileHandle pkgname=perl-filehandle-unget +_dist=FileHandle-Unget pkgver=0.1634 pkgrel=3 -pkgdesc="FileHandle which supports multi-byte unget" +pkgdesc='FileHandle which supports multi-byte unget' arch=(any) -url="http://search.cpan.org/dist/$_perlmod" -license=(GPL PerlArtistic) +url="http://search.cpan.org/dist/$_dist" +license=(GPL-2.0-only) depends=(perl) checkdepends=(perl-test-compile perl-file-slurper perl-universal-require) options=(!emptydirs) -source=("http://cpan.perl.org/modules/by-module/$_modnamespace/$_perlmod-$pkgver.tar.gz") +source=("$pkgname-$pkgver.tar.gz::http://cpan.perl.org/modules/by-module/${_dist%-*}/$_dist-$pkgver.tar.gz") b2sums=('b7f4993e1247ac5b80828ba56137acde6660576934d42abb9628ef4afbd82b69849a95670625ce56044c12636fc81b5aab4297135b17cc4af2f4651beabaff4a') build() { - cd "$srcdir/$_perlmod-$pkgver" + cd $_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 @@ -24,14 +23,14 @@ build() { } check() { - cd "$srcdir/$_perlmod-$pkgver" + cd $_dist-$pkgver unset PERL5LIB PERL_MM_OPT PERL_LOCAL_LIB_ROOT export PERL_MM_USE_DEFAULT=1 make test } package() { - cd "$srcdir/$_perlmod-$pkgver" + cd $_dist-$pkgver unset PERL5LIB PERL_MM_OPT PERL_LOCAL_LIB_ROOT make install INSTALLDIRS=vendor DESTDIR="$pkgdir" }