diff options
author | Caleb Maclennan | 2023-02-17 13:58:53 +0300 |
---|---|---|
committer | Caleb Maclennan | 2023-02-17 14:03:56 +0300 |
commit | 9e34a1377cf4a3e9d3f48cece5fc851583217ac5 (patch) | |
tree | a31f141b58d9c807900d347dabd0c7a93139ba02 | |
download | aur-9e34a1377cf4a3e9d3f48cece5fc851583217ac5.tar.gz |
Drop python prefix, overhaul PKGBUILD
Initial upload: hledger-utils-git 1.12.1.r11.g209cd20-1
Deleted package: python-hledger-utils-git
* Imported history of python-hledger-utils-git and renamed to
hledger-utils-git because it is not a library.
* Fix missing build dependencies.
* Delete tests from installation.
* Follow Python packaging guidelines more closely.
* Sync style with stable packaging.
* Provide specific version.
-rw-r--r-- | .SRCINFO | 29 | ||||
-rw-r--r-- | PKGBUILD | 49 |
2 files changed, 78 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..25102eb401ba --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,29 @@ +pkgbase = hledger-utils-git + pkgdesc = Utilities extending the hledger plaintextaccounting tool + pkgver = 1.12.1.r11.g209cd20 + pkgrel = 1 + url = https://gitlab.com/nobodyinperson/hledger-utils + arch = any + license = GPL + makedepends = git + makedepends = python-build + makedepends = python-installer + makedepends = python-wheel + makedepends = python-setuptools-scm + depends = hledger + depends = python + depends = python-asteval + depends = python-cycler + depends = python-matplotlib + depends = python-numpy + depends = python-pandas + depends = python-psutil + depends = python-rich + depends = python-scipy + provides = hledger-utils=1.12.1.r11.g209cd20 + conflicts = hledger-utils + replaces = python-hledger-utils-git + source = git+https://gitlab.com/nobodyinperson/hledger-utils.git + sha256sums = SKIP + +pkgname = hledger-utils-git diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..099ff226eba4 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,49 @@ +# Maintainer: Caleb Maclennan <caleb@alerque.com> +# Maintainer: Yann Büchau <nobodyinperson@posteo.de> + +pkgname=hledger-utils-git +_pkgname=${pkgname%-git} +pkgver=1.12.1.r11.g209cd20 +pkgrel=1 +pkgdesc='Utilities extending the hledger plaintextaccounting tool' +arch=(any) +url="https://gitlab.com/nobodyinperson/$_pkgname" +license=(GPL) +_pydeps=(asteval + cycler + # drawilleplot + matplotlib + numpy + pandas + psutil + rich + scipy) +depends=(hledger + python + "${_pydeps[@]/#/python-}") +makedepends=(git + python-{build,installer,wheel} + python-setuptools-scm) +provides=("$_pkgname=$pkgver") +conflicts=("$_pkgname") +replaces=(python-hledger-utils-git) +source=("git+$url.git") +sha256sums=('SKIP') + +pkgver () { + cd "$_pkgname" + git describe --long --tags --abbrev=7 --match="v*" HEAD | + sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g' +} + +build () { + cd "$_pkgname" + python -m build -wn +} + +package () { + cd "$_pkgname" + python -m installer -d "$pkgdir" dist/*.whl + local _py3_ver=$(python --version | cut -d " " -f2) + rm -rf "$pkgdir/usr/lib/python${_py3_ver%.*}/site-packages/tests" +} |