Package Details: python-kconfiglib 14.1.0-2

Git Clone URL: https://aur.archlinux.org/python-kconfiglib.git (read-only, click to copy)
Package Base: python-kconfiglib
Description: A flexible Python Kconfig implementation
Upstream URL: https://pypi.org/project/kconfiglib/
Keywords: build config make
Licenses: ISC
Submitter: Popolon
Maintainer: Popolon
Last Packager: Popolon
Votes: 2
Popularity: 0.000000
First Submitted: 2020-11-25 12:05 (UTC)
Last Updated: 2022-10-27 23:17 (UTC)

Latest Comments

rmsc commented on 2022-10-25 12:19 (UTC)

First of all, thanks for maintaining this package!

This package builds both python3 and python2 support, which I believe shouldn't happen in a "python-*" package.

In my case I'd rather not have python2 cruft lying around in the system :)

Could you kindly remove support for python2 from this package? And perhaps move it to a proper python2-kconfiglib package? Thanks!

Forty-Bot commented on 2021-03-06 03:52 (UTC) (edited on 2021-03-06 03:52 (UTC) by Forty-Bot)

From ba00c072ba0af075eb17a99ab9465ce39dfdd158 Mon Sep 17 00:00:00 2001
From: Sean Anderson <seanga2@gmail.com>
Date: Fri, 5 Mar 2021 22:48:28 -0500
Subject: [PATCH] Install license

This installs the license. It also changes the license identifier to 'ISC'
to follow the general convention. Because BSD-derived licenses include a
copyright line in their license text, each package with such a license must
install that license into the licenses directory [1].

Signed-off-by: Sean Anderson <seanga2@gmail.com>

[1] https://wiki.archlinux.org/index.php/PKGBUILD#license
---
 .SRCINFO | 4 ++--
 PKGBUILD | 5 +++--
 2 files changed, 5 insertions(+), 4 deletions(-)

diff --git a/.SRCINFO b/.SRCINFO
index 7a02cb5..a0fde2d 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,10 +1,10 @@
 pkgbase = python-kconfiglib
    pkgdesc = A flexible Python Kconfig implementation
    pkgver = 14.1.0
-   pkgrel = 1
+   pkgrel = 2
    url = https://pypi.org/project/kconfiglib/
    arch = any
-   license = ISC License
+   license = ISC
    makedepends = python-setuptools
    makedepends = python2-setuptools
    source = https://github.com/ulfalizer/kconfiglib/archive/v14.1.0.tar.gz
diff --git a/PKGBUILD b/PKGBUILD
index e31b1ee..3e230d6 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -4,11 +4,11 @@ pkgname=python-kconfiglib
 _name=kconfiglib
 _dir=Kconfiglib
 pkgver=14.1.0
-pkgrel=1
+pkgrel=2
 pkgdesc="A flexible Python Kconfig implementation"
 arch=('any')
 url="https://pypi.org/project/kconfiglib/"
-license=('ISC License')
+license=('ISC')
 makedepends=('python-setuptools' 'python2-setuptools')
 source=("https://github.com/ulfalizer/${_name}/archive/v${pkgver}.tar.gz")
 sha512sums=('929a75f9b9f74ad7d4190c15d7178b94ee0a6d1fb71d85e2942935e3a9370a4f2483d8b49123d41d6610841ad9efde1dc4c14fc5231a08379d438a486ed3f97c')
@@ -21,4 +21,5 @@ build() {
 package() {
     cd "${srcdir}/${_dir}-${pkgver}"
     python setup.py install --skip-build  --root="${pkgdir}" --optimize=1
+    install -Dt "$pkgdir/usr/share/licenses/$pkgname" -m644 LICENSE.txt
 }
-- 
2.30.1