Skip to content
Snippets Groups Projects
Verified Commit 74d7e888 authored by Daniel M. Capella's avatar Daniel M. Capella
Browse files

upgpkg: 0.2.2-6: Rebuild for Python 3.12 https://archlinux.org/todo/python-modules-part-1/

parent 9a728b1c
No related branches found
No related tags found
No related merge requests found
.SRCINFO 0 → 100644
pkgbase = python-littleutils
pkgdesc = Small personal collection of python utility functions
pkgver = 0.2.2
pkgrel = 6
url = https://github.com/alexmojaki/littleutils
arch = any
license = MIT
makedepends = git
makedepends = python-build
makedepends = python-installer
makedepends = python-setuptools
makedepends = python-wheel
depends = python
source = git+https://github.com/alexmojaki/littleutils.git#tag=v0.2.2
b2sums = b3df61e0e672f4f0e584aa505a073ae54fc1e0ecd45aed3d957c17d4e163ab315a171cfc6a61a0467fd132c5929c16756601702402fb4bc04f077f67d9ef7d70
pkgname = python-littleutils
# Maintainer: Daniel M. Capella <polyzen@archlinux.org>
# Contributor: Jose Riha <jose1711 gmail com>
_name=littleutils
pkgname=python-littleutils
_name=${pkgname#python-}
pkgver=0.2.2
pkgrel=5
pkgrel=6
pkgdesc='Small personal collection of python utility functions'
arch=('any')
url=https://github.com/alexmojaki/littleutils
license=('MIT')
depends=('python')
makedepends=('python-build' 'python-installer' 'python-setuptools'
'python-wheel')
source=("https://files.pythonhosted.org/packages/source/${_name::1}/$_name/$_name-$pkgver.tar.gz"
'littleutils-LICENSE::https://raw.githubusercontent.com/alexmojaki/littleutils/master/LICENSE')
sha256sums=('e6cae3a4203e530d51c9667ed310ffe3b1948f2876e3d69605b3de4b7d96916f'
'dfe14f8798c400cbcc85bb4536a686c6fcf3086b3446c3f7c7054a2bcd73ca6a')
b2sums=('80aec2c133e39eb0e18c948b15d475e60842689fd0e758c43511a8b014648d7c9e843182e2a87c0b3f9933f748340f2059653f0885cf416edbc5a60457c70629'
'e44ad793561d875774b4af672b66ee48156279a99d23a4c2d24425b33adf6fa6cc0c2abc6f99302b435da198b3525c4107f56bbed06155162712e1bd9b13e62e')
makedepends=(
'git'
'python-build'
'python-installer'
'python-setuptools'
'python-wheel'
)
source=("git+$url.git#tag=v$pkgver")
b2sums=('b3df61e0e672f4f0e584aa505a073ae54fc1e0ecd45aed3d957c17d4e163ab315a171cfc6a61a0467fd132c5929c16756601702402fb4bc04f077f67d9ef7d70')
build() {
cd $_name-$pkgver
cd "$_name"
python -m build --wheel --skip-dependency-check --no-isolation
}
check() {
cd $_name-$pkgver
cd "$_name"
python littleutils/__init__.py
}
package() {
install -Dm644 littleutils-LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
cd $_name-$pkgver
cd "$_name"
python -m installer --destdir="$pkgdir" dist/*.whl
# 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"/"$_name"-$pkgver.dist-info/LICENSE \
"$pkgdir"/usr/share/licenses/$pkgname/LICENSE
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment