You are not logged in.

#1 2026-05-15 14:52:52

Abhinav
Member
Registered: 2025-03-18
Posts: 24

License help. Not sure whether to add a custom license.

I am writing my first PKGBUILD

# Maintainer: Abhinav Adhikari (abhinavadhikari481@gmail.com)

pkgname=python-vcdvcd
pkgver=2.6.0
_name=vcdvcd
pkgrel=1
pkgdesc="Python Verilog value change dump (VCD) parser library + the nifty vcdcat VCD command line viewer"
arch=('x86_64')
url="https://github.com/cirosantilli/vcdvcd"

source=(https://files.pythonhosted.org/packages/source/${_name::1}/${_name//-/_}/${_name//-/_}-$pkgver.tar.gz)
sha256sums=('96d8ce491729e8c8ad7034a5093601409d8a3f4a34023d0be3db28650ecbb128')

depends=('python')

makedepends=('python-setuptools')

build() {
    cd $_name-$pkgver
    python setup.py build
}

package() {
    cd $_name-$pkgver
    install -Dm644 LICENCE.md -t "${pkgdir}/usr/share/licenses/${pkgname}/"
    python setup.py install --root="$pkgdir" --optimize=1
}

The code has a license states that

This package is licensed under Perl_5 - The Perl 5 License (Artistic 1 & GPL 1)

Any changes made by Ciro Santilli are also additionally licensed under MIT License.

The whole custom message is here

I have added the whole text above to the /usr/share/licenses. Is this all I need do to?

Do I also need to need to add a custom: to the license variable for that notice?

Offline

#2 2026-05-17 15:33:01

twelveeighty
Member
Registered: 2011-09-04
Posts: 1,451

Re: License help. Not sure whether to add a custom license.

Unfortunately, that LICENCE.md is not a license, it's a discussion about licensing so it might as well not have any license at all, from a legal standpoint. You cannot have phrases such as "how much you believe", "would like to" and "in <subject's> understanding" in a license.

If you don't feel too strongly about this and just want to move on with packaging, I recommend tagging it with the most restrictive license, which I believe is GPL1.

Offline

#3 2026-05-17 21:41:23

loqs
Member
Registered: 2014-03-06
Posts: 18,879

Re: License help. Not sure whether to add a custom license.

arch=('x86_64')

Pure python packages are arch any.

source=(https://files.pythonhosted.org/packages/source/${_name::1}/${_name//-/_}/${_name//-/_}-$pkgver.tar.gz)

Please consider using an alternative source to pypi if available https://rfc.archlinux.page/0020-sources … packaging/.

    python setup.py build

Does the package not support PEP517?

Offline

Board footer

Powered by FluxBB