* update python-pyasn1 to 0.6.0-1

This commit is contained in:
Alexander Baldeck 2024-09-24 13:44:23 +02:00
parent 5fb0710a61
commit 68f7ee442c
3 changed files with 32 additions and 5 deletions

View File

@ -0,0 +1,18 @@
pkgbase = python-pyasn1
pkgdesc = ASN.1 library for Python 3
pkgver = 0.6.0
pkgrel = 1
url = https://github.com/pyasn1/pyasn1
arch = any
license = BSD-2-Clause
makedepends = python-build
makedepends = python-installer
makedepends = python-setuptools
makedepends = python-wheel
depends = python
provides = pyasn1
replaces = pyasn1
source = https://github.com/pyasn1/pyasn1/archive/v0.6.0/pyasn1-0.6.0.tar.gz
sha512sums = a62a847cb1a6d4cdf200a05105b9473fdb0af76223465250fd2675bb4205db4d30a7d580b2140369397f04c6e3eb7a69f9cc01d49a7782aead588dd24b9fc199
pkgname = python-pyasn1

View File

@ -0,0 +1,4 @@
[python-pyasn1]
source = "git"
git = "https://github.com/pyasn1/pyasn1.git"
prefix = "v"

View File

@ -3,17 +3,17 @@
pkgname=python-pyasn1
pkgdesc="ASN.1 library for Python 3"
pkgver=0.5.1
pkgver=0.6.0
pkgrel=1
arch=(any)
url="https://github.com/pyasn1/pyasn1"
license=('BSD')
license=('BSD-2-Clause')
depends=('python')
makedepends=('python-build' 'python-installer' 'python-setuptools' 'python-wheel')
replaces=('pyasn1')
provides=('pyasn1')
source=(https://github.com/pyasn1/pyasn1/archive/v$pkgver/pyasn1-$pkgver.tar.gz)
sha512sums=('570880ba571a054da9b64aab8cc1646be3cb6c9ccf71f2039feb04114a0a2ddca07b1a55c116736a286426461762304fb3b7819c3e7e78ed7ff1291e02f7f9cc')
source=("https://github.com/pyasn1/pyasn1/archive/v$pkgver/pyasn1-$pkgver.tar.gz")
sha512sums=('a62a847cb1a6d4cdf200a05105b9473fdb0af76223465250fd2675bb4205db4d30a7d580b2140369397f04c6e3eb7a69f9cc01d49a7782aead588dd24b9fc199')
build() {
cd pyasn1-$pkgver
@ -28,5 +28,10 @@ check() {
package() {
cd pyasn1-$pkgver
python -m installer -d "$pkgdir" dist/*.whl
install -Dm644 LICENSE.rst -t "$pkgdir"/usr/share/licenses/$pkgname/
# Symlink license file
local site_packages=$(python -c "import site; print(site.getsitepackages()[0])")
install -d "$pkgdir"/usr/share/licenses/$pkgname
ln -s "$site_packages"/pyasn1-$pkgver.dist-info/LICENSE.rst \
"$pkgdir"/usr/share/licenses/$pkgname/LICENSE.rst
}