diff options
author | lilac | 2022-09-06 21:16:39 +0800 |
---|---|---|
committer | lilac | 2022-09-06 21:16:39 +0800 |
commit | ce14439357f76b5ed78fc2abe2c26306c9926387 (patch) | |
tree | 370c7e01386908628c1adc3f36dccb19600b7b27 | |
parent | 2996a6db85d0007f20eac2ae7d237ffa5472ebd6 (diff) | |
download | aur-ce14439357f76b5ed78fc2abe2c26306c9926387.tar.gz |
[lilac] updated to 4.13.3-1
-rw-r--r-- | .SRCINFO | 6 | ||||
-rw-r--r-- | PKGBUILD | 11 |
2 files changed, 7 insertions, 10 deletions
@@ -1,13 +1,13 @@ pkgbase = python-jsonargparse pkgdesc = Parsing of command line options, yaml/jsonnet config files and/or environment variables based on argparse - pkgver = 4.13.2 + pkgver = 4.13.3 pkgrel = 1 url = https://github.com/omni-us/jsonargparse arch = any license = MIT makedepends = python-setuptools depends = python-yaml - source = jsonargparse-4.13.2.tar.gz::https://github.com/omni-us/jsonargparse/archive/refs/tags/v4.13.2.tar.gz - sha512sums = 81286a72b30f1a6bf527f4e34fc0de80a3e05ad36993035f75ab16248308b4fc32d1a66a940389f74922f39e059be9abe8194e521818539f0f5d59d3a60472c8 + source = jsonargparse-4.13.3.tar.gz::https://github.com/omni-us/jsonargparse/archive/refs/tags/v4.13.3.tar.gz + sha512sums = 14d9fb43abf9f690f0b22a4ee39ed693ec8f5e5937716ed57230732a038c477dd1b5aa0870eeaf964794df4516d2ffe3387eff111dae4dce86bca4f287e39b3b pkgname = python-jsonargparse @@ -2,7 +2,7 @@ _pkgname=jsonargparse pkgname=python-jsonargparse -pkgver=4.13.2 +pkgver=4.13.3 pkgrel=1 pkgdesc='Parsing of command line options, yaml/jsonnet config files and/or environment variables based on argparse' arch=('any') @@ -15,11 +15,7 @@ makedepends=( python-setuptools ) source=("${_pkgname}-${pkgver}.tar.gz::https://github.com/omni-us/jsonargparse/archive/refs/tags/v${pkgver}.tar.gz") -sha512sums=('81286a72b30f1a6bf527f4e34fc0de80a3e05ad36993035f75ab16248308b4fc32d1a66a940389f74922f39e059be9abe8194e521818539f0f5d59d3a60472c8') - -get_pyver() { - python -c 'import sys; print(str(sys.version_info[0]) + "." + str(sys.version_info[1]))' -} +sha512sums=('14d9fb43abf9f690f0b22a4ee39ed693ec8f5e5937716ed57230732a038c477dd1b5aa0870eeaf964794df4516d2ffe3387eff111dae4dce86bca4f287e39b3b') build() { cd "${_pkgname}-${pkgver}" @@ -27,9 +23,10 @@ build() { } package() { + local site_packages=$(python -c "import site; print(site.getsitepackages()[0])") cd "${_pkgname}-${pkgver}" python setup.py install --root="${pkgdir}" --optimize=1 --skip-build install -Dm644 LICENSE.rst -t "${pkgdir}/usr/share/licenses/${pkgname}" - rm -rf "${pkgdir}/usr/lib/python$(get_pyver)/site-packages/jsonargparse_tests" + rm -rf "${pkgdir}${site_packages}/jsonargparse_tests" } # vim:set ts=2 sw=2 et: |