From 21f06ba5c67303926aa60dba11f99a2b05fa050b Mon Sep 17 00:00:00 2001 From: maxice8 Date: Wed, 14 Feb 2018 23:53:47 -0200 Subject: [PATCH] licensechecker: update to 1.2.0. --- .../licensechecker/patches/fix-32-bit.patch | 27 ------------------- srcpkgs/licensechecker/template | 4 +-- 2 files changed, 2 insertions(+), 29 deletions(-) delete mode 100644 srcpkgs/licensechecker/patches/fix-32-bit.patch diff --git a/srcpkgs/licensechecker/patches/fix-32-bit.patch b/srcpkgs/licensechecker/patches/fix-32-bit.patch deleted file mode 100644 index f051e2fc0c..0000000000 --- a/srcpkgs/licensechecker/patches/fix-32-bit.patch +++ /dev/null @@ -1,27 +0,0 @@ -diff --git parsers/guesser.go parsers/guesser.go -index 1f55738..eeac0fa 100644 ---- parsers/guesser.go -+++ parsers/guesser.go -@@ -299,7 +299,7 @@ func processFile(directory string, file string, rootLicenses []LicenseMatch) Fil - Md5Hash: getMd5Hash(content), - Sha1Hash: getSha1Hash(content), - Sha256Hash: getSha256Hash(content), -- BytesHuman: bytesToHuman(len(content)), -+ BytesHuman: bytesToHuman(int64(len(content))), - Bytes: len(content)} - - return fileResult -diff --git parsers/helpers.go parsers/helpers.go ---- parsers/helpers.go -+++ parsers/helpers.go -@@ -80,9 +80,9 @@ func licenceListHasLicense(license LicenseMatch, licenseList []LicenseMatch) boo - // Apache-2.0 is compatible with GPL-3.0-only - // See https://apache.org/licenses/GPL-compatibility.html - // SPDX-License-Identifier: Apache-2.0 --func bytesToHuman(bytes int) string { -+func bytesToHuman(bytes int64) string { - - const TERABYTE = 1099511627776 - const GIGABYTE = 1073741824 - const MEGABYTE = 1048576 - const KILOBYTE = 1024 diff --git a/srcpkgs/licensechecker/template b/srcpkgs/licensechecker/template index 0d6b962826..9b8d836d88 100644 --- a/srcpkgs/licensechecker/template +++ b/srcpkgs/licensechecker/template @@ -1,6 +1,6 @@ # Template file for 'licensechecker' pkgname=licensechecker -version=1.1.1 +version=1.2.0 revision=1 wrksrc="lc-${version}" build_style=go @@ -11,7 +11,7 @@ maintainer="Michael Gehring " license="GPL-3" homepage="https://github.com/boyter/lc" distfiles="https://github.com/boyter/lc/archive/v${version}.tar.gz" -checksum=19429fa63036eb20d4f54586674ba3a73fc224c978587b87e8e7e4c1e9ec8c46 +checksum=e007af5f512f07c3b4e001045eb1583da5a9a9534c9c4e625ef3efb6c38cbe01 conflicts="mono>=0" # /usr/bin/lc