summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarcell Meszaros2024-02-13 19:57:07 +0100
committerMarcell Meszaros2024-02-13 20:13:46 +0100
commit75e549e04e9169af5c8a849f0778c7a39c791c25 (patch)
tree6f256c5abcb04a913e1a002a2016c95de865f04d
parent8a2880bd0be7fd1c64d512d1e9b8e3af8c5cf7d6 (diff)
downloadaur-75e549e04e9169af5c8a849f0778c7a39c791c25.tar.gz
0.11-1: upstream update, modernize package license
-rw-r--r--.AURINFO15
-rw-r--r--.SRCINFO16
-rw-r--r--.gitignore18
-rw-r--r--PKGBUILD39
4 files changed, 47 insertions, 41 deletions
diff --git a/.AURINFO b/.AURINFO
deleted file mode 100644
index c8aea4504a35..000000000000
--- a/.AURINFO
+++ /dev/null
@@ -1,15 +0,0 @@
-pkgbase = perl-hash-util-fieldhash-compat
- pkgdesc = Use Hash::Util::FieldHash or ties, depending on availability
- pkgver = 0.07
- pkgrel = 1
- url = http://search.mcpan.org/dist/Hash-Util-FieldHash-Compat
- arch = any
- license = PerlArtistic
- license = GPL
- checkdepends = perl-test-use-ok
- depends = perl
- source = http://search.mcpan.org/CPAN/authors/id/E/ET/ETHER/Hash-Util-FieldHash-Compat-0.07.tar.gz
- options = !emptydirs
-
-pkgname = perl-hash-util-fieldhash-compat
-
diff --git a/.SRCINFO b/.SRCINFO
index ec7e693ae7e4..ffd3ef99f743 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,17 +1,15 @@
pkgbase = perl-hash-util-fieldhash-compat
pkgdesc = Use Hash::Util::FieldHash or ties, depending on availability
- pkgver = 0.07
+ pkgver = 0.11
pkgrel = 1
- url = http://search.mcpan.org/dist/Hash-Util-FieldHash-Compat
+ url = https://metacpan.org/release/Hash-Util-FieldHash-Compat
arch = any
- license = PerlArtistic
- license = GPL
- checkdepends = perl-test-use-ok
+ license = LicenseRef-GPL-1.0-or-later OR Artistic-1.0-Perl
depends = perl
options = !emptydirs
- source = http://search.mcpan.org/CPAN/authors/id/E/ET/ETHER/Hash-Util-FieldHash-Compat-0.07.tar.gz
- md5sums = e53d60f6857fb0d3fae893030441b315
- sha512sums = 1d12a40a17c7ba3ca82cfda975580dc83f9475db4784988a141ed15a6d4c6bf9fda1c223023c68e603b51dfa2166620a679600ccab00265da3c1042d7a7ee7f6
+ source = https://search.cpan.org/CPAN/authors/id/E/ET/ETHER/Hash-Util-FieldHash-Compat-0.11.tar.gz
+ source = Hash-Util-FieldHash-Compat-LICENCE-GPL-1.0-or-later.txt::https://raw.githubusercontent.com/Perl/perl5/perl-5.10.0/Copying
+ sha512sums = a38397ba17587d85ed88020c85bd4d7c36798a9e8fa46490017ea84d30c6541f32a621a9ef585d57dbb49f39791d5644f329e956d4be9e0ec01918eb782eae9c
+ sha512sums = f3e5cce80bb15147bcb998320e670d2e04ae9cef0425181c4123471b781c6f56bd8b3e71fef2d6ab0f02b5fb8591d7ecb26ddc09ba3d2fb2f9ef7a538f4ac998
pkgname = perl-hash-util-fieldhash-compat
-
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 000000000000..058ba2318df1
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,18 @@
+# based on https://github.com/github/gitignore/blob/master/ArchLinuxPackages.gitignore
+*.tar
+*.tar.*
+*.rpm
+*.jar
+*.exe
+*.msi
+*.zip
+*.tgz
+*.log
+*.log.*
+
+*/
+*.orig
+*.bak
+*.backup
+*.kate-swp
+.directory
diff --git a/PKGBUILD b/PKGBUILD
index 697ef9a885f4..9a5dcbed6c84 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,21 +1,31 @@
+# Contributor: Marcell Meszaros < marcell.meszaros AT runbox.eu >
# Contributor: John D Jones III <jnbek1972 -_AT_- g m a i l -_Dot_- com>
-# Generator : CPANPLUS::Dist::Arch 1.28
+# Generator : CPANPLUS::Dist::Arch 1.32
+_distname='Hash-Util-FieldHash-Compat'
pkgname='perl-hash-util-fieldhash-compat'
-pkgver='0.07'
+pkgver='0.11'
pkgrel='1'
pkgdesc="Use Hash::Util::FieldHash or ties, depending on availability"
arch=('any')
-license=('PerlArtistic' 'GPL')
+license=('LicenseRef-GPL-1.0-or-later OR Artistic-1.0-Perl')
options=('!emptydirs')
depends=('perl')
-makedepends=()
-checkdepends=('perl-test-use-ok')
-url='http://search.mcpan.org/dist/Hash-Util-FieldHash-Compat'
-source=('http://search.mcpan.org/CPAN/authors/id/E/ET/ETHER/Hash-Util-FieldHash-Compat-0.07.tar.gz')
-md5sums=('e53d60f6857fb0d3fae893030441b315')
-sha512sums=('1d12a40a17c7ba3ca82cfda975580dc83f9475db4784988a141ed15a6d4c6bf9fda1c223023c68e603b51dfa2166620a679600ccab00265da3c1042d7a7ee7f6')
-_distdir="Hash-Util-FieldHash-Compat-0.07"
+url="https://metacpan.org/release/$_distname"
+_author='ETHER'
+_licensefilename_SPDX_GPL1='GPL-1.0-or-later.txt'
+source=("https://search.cpan.org/CPAN/authors/id/${_author::1}/${_author::2}/$_author/$_distname-$pkgver.tar.gz"
+ "${_distname}-LICENCE-${_licensefilename_SPDX_GPL1}::https://raw.githubusercontent.com/Perl/perl5/perl-5.10.0/Copying")
+sha512sums=('a38397ba17587d85ed88020c85bd4d7c36798a9e8fa46490017ea84d30c6541f32a621a9ef585d57dbb49f39791d5644f329e956d4be9e0ec01918eb782eae9c'
+ 'f3e5cce80bb15147bcb998320e670d2e04ae9cef0425181c4123471b781c6f56bd8b3e71fef2d6ab0f02b5fb8591d7ecb26ddc09ba3d2fb2f9ef7a538f4ac998')
+_distdir="$_distname-$pkgver"
+
+prepare() {
+ cd "$srcdir/$_distdir"
+
+ echo "Preparing license resources..."
+ cp --verbose "../$_distname-LICENCE-$_licensefilename_SPDX_GPL1" "LICENCE-$_licensefilename_SPDX_GPL1"
+}
build() {
( export PERL_MM_USE_DEFAULT=1 PERL5LIB="" \
@@ -40,12 +50,7 @@ check() {
package() {
cd "$srcdir/$_distdir"
make install
-
find "$pkgdir" -name .packlist -o -name perllocal.pod -delete
-}
-# Local Variables:
-# mode: shell-script
-# sh-basic-offset: 2
-# End:
-# vim:set ts=2 sw=2 et:
+ install -Dm644 LICENCE* -t "$pkgdir/usr/share/licenses/$pkgname"
+}