63 lines
1.8 KiB
Bash
63 lines
1.8 KiB
Bash
#!/usr/bin/bash
|
|
# JOBoRun : Jwm OpenBox Obarun RUNit
|
|
# Maintainer : Joe Bo Run <joborun@disroot.org>
|
|
# PkgSource : url="https://git.disroot.org/joborun-pkg/jobextra/src/branch/main/$pkgname"
|
|
# Website : https://pozol.eu
|
|
#-----------------------------------------| DESCRIPTION |---------------------------------------
|
|
|
|
pkgname=python-typing_extensions
|
|
_name=${pkgname#python-}
|
|
pkgver=4.12.2
|
|
pkgrel=01
|
|
pkgdesc='Backported and Experimental Type Hints for Python 3.8+'
|
|
url=https://github.com/python/typing_extensions
|
|
depends=(python)
|
|
makedepends=(git python-build python-flit-core python-installer)
|
|
checkdepends=(python-tests)
|
|
provides=(python-typing-extensions)
|
|
conflicts=(python-typing-extensions)
|
|
#_tag=ed81f2b2043f60b0c159914e264e127f5d0b4cda
|
|
#source=("git+${url}.git#tag=${_tag}")
|
|
source=("git+${url}.git#tag=${pkgver}")
|
|
|
|
#pkgver() {
|
|
# cd "${_name}"
|
|
#
|
|
# git describe --tags
|
|
#}
|
|
|
|
build() {
|
|
cd "${_name}"
|
|
|
|
python -m build --wheel --skip-dependency-check --no-isolation
|
|
}
|
|
|
|
check() {
|
|
cd "${_name}"
|
|
|
|
PYTHONPATH="${PWD}/src" python -m unittest discover src
|
|
}
|
|
|
|
package() {
|
|
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
|
|
}
|
|
|
|
#---- arch license gpg-key & sha256sums ----
|
|
|
|
arch=(x86_64)
|
|
|
|
license=(Python-2.0.1)
|
|
|
|
b2sums=('30c551e10925ab05ace7a8b7465e34a07d8a698abc7d00e1e3fbc2ba968afc6873ca90aa4a981f78fd584db1cacf4d19a689e4140a661b64cff46eb16cedf7cc')
|
|
sha256sums=(SKIP)
|
|
|
|
## 974e8842da2d51b46bfbb718f44fc68e8d5715cc9bbd7df839fc521e1e39789a python-typing_extensions-4.12.2-01-x86_64.pkg.tar.lz
|
|
|