Package Details: basez 1.6.2-2

Git Clone URL: https://aur.archlinux.org/basez.git (read-only, click to copy)
Package Base: basez
Description: Encodes/decodes base16, base32, base32hex, base64, base64url, base64mime, base64pem PEM, base32plain, base64plain. base16 and base32 are NOT included in this package since they would conflict with the one already in coreutils.
Upstream URL: http://www.quarkline.net/basez/
Licenses: GPL
Submitter: alphazo
Maintainer: JohnCiubuc
Last Packager: JohnCiubuc
Votes: 2
Popularity: 0.35
First Submitted: 2019-02-05 08:39
Last Updated: 2020-07-11 05:00

Latest Comments

k3a commented on 2021-06-02 14:56

Here are sources of the fixed package which compiles fine https://gist.github.com/k3a/c49c0924ad48da21d51aa044f714ef42

tuxsavvy commented on 2021-05-04 09:22

Hi, thanks for maintaining this package. I have found some issues and am providing a patch file to fix all these (please see further below).

The issues this package has (in the order of severity, starting from blocker/worst):

  • It does not compile; fails at package() stage, there is a patch available through Debian source,

  • The license file is actually a combination of GPL3, BSD (2-clause) and CC-BY-SA 3.0, not GPL,

  • Upstream source provides sha256sum which should be used instead of md5sum,

  • (minor) pkgdesc= is well over 100 characters,

Here is the log file when built as-is: https://paste.rs/MLn

Here is the patch file which addresses all the aforementioned issue:

--- PKGBUILD.orig
+++ PKGBUILD
@@ -2,15 +2,25 @@

 pkgname=basez
 pkgver=1.6.2
-pkgrel=2
-pkgdesc='Encodes/decodes base16, base32, base32hex, base64, base64url, base64mime, base64pem PEM, base32plain, base64plain. base16 and base32 are NOT included in this package since they would conflict with the one already in coreutils.'
+pkgrel=3
+pkgdesc='base 16/32/64 encode/decode data to standard output. base16/32 are OMITTED since coreutils provides it.'
 arch=('x86_64')
 url='http://www.quarkline.net/basez/'
 depends=('gcc-libs')
-license=('GPL')
+license=('GPL3' 'CCPL' 'BSD')

-source=("http://www.quarkline.net/basez/download/${pkgname}-${pkgver}.tar.gz")
-md5sums=('b026890b9565bd2cba93afdbcd3213aa')
+source=("http://www.quarkline.net/basez/download/${pkgname}-${pkgver}.tar.gz"
+       "https://sources.debian.org/data/main/b/basez/1.6.2-1/debian/patches/build"
+       "https://sources.debian.org/data/main/b/basez/1.6.2-1/debian/patches/missing-runstatedir-option")
+sha256sums=('2a9f821488791c2763ef0120c75c43dc83dd16567b7c416f30331889fd598937'
+            '0cda0fba0ac1319e6bdf9fb9c14b09bc9ad96bd0873e9feba9a4156ebe382242'
+            'a99ff69e357f13e025717cb7e080a3e17fd30110bb29f480b154b47254f35d63')
+
+prepare() {
+  cd "${srcdir}/${pkgname}-${pkgver}"
+  patch -Np1 -ti ../build
+  patch -Np1 -ti ../missing-runstatedir-option
+}

 build() {
   cd "${srcdir}/${pkgname}-${pkgver}"
@@ -21,4 +31,6 @@
 package() {
   cd "${srcdir}/${pkgname}-${pkgver}"
   make DESTDIR="${pkgdir}" install
+  install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+  rm -rf "${pkgdir}/usr/share/doc"
 }

Forty-Bot commented on 2019-07-05 19:25

Upstream is gone...