diff options
author | Mark Collins | 2023-05-12 14:43:15 +0200 |
---|---|---|
committer | Mark Collins | 2023-05-12 14:43:37 +0200 |
commit | a67f59072ef90fff2bf35f184e0f97bf2e761e6e (patch) | |
tree | cadd07d72e63967898f0c965e1a5dbf466bc5418 | |
parent | fbf95eba8e7d56a7717e923715098271264d8de9 (diff) | |
download | aur-a67f59072ef90fff2bf35f184e0f97bf2e761e6e.tar.gz |
Remove python-argparse depend, and switch to standard python install template
thanks @dreieck for pointing out https://bugs.archlinux.org/task/78484
-rw-r--r-- | .SRCINFO | 24 | ||||
-rw-r--r-- | PKGBUILD | 66 |
2 files changed, 60 insertions, 30 deletions
@@ -1,22 +1,30 @@ pkgbase = matrix-commander-git - pkgdesc = Simple CLI-based Matrix client for sending and receiving - pkgver = r82.06b4738 + pkgdesc = Simple CLI-based Matrix client (from git master) + pkgver = r324.dbf2829 pkgrel = 1 url = https://github.com/8go/matrix-commander arch = any license = GPL + makedepends = python-build + makedepends = python-installer + makedepends = python-wheel + depends = python>3.7 depends = python-aiohttp - depends = python-aiofiles - depends = python-argparse + depends = python-aiofiles>=0.6.0 + depends = python-emoji depends = python-markdown - depends = python-matrix-nio - depends = python-notify2 + depends = python-matrix-nio>=0.14.1 depends = python-pillow - depends = python-magic-ahupp + depends = python-magic + depends = python-pyxdg + depends = python-atomicwrites + depends = python-cachetools + depends = python-olm + depends = python-peewee + optdepends = python-notify2: needed for notifications on desktop systems provides = matrix-commander conflicts = matrix-commander source = matrix-commander::git+https://github.com/8go/matrix-commander.git md5sums = SKIP pkgname = matrix-commander-git - @@ -1,37 +1,59 @@ # Maintainer: Mark Collins <tera_1225 hat hotmail.com> pkgname=matrix-commander-git -pkgver=r82.06b4738 -pkgrel=1 -pkgdesc="Simple CLI-based Matrix client for sending and receiving" +_name="${pkgname%-git}" +pkgver=r324.dbf2829 +pkgrel=2 +pkgdesc="Simple CLI-based Matrix client (from git master)" arch=('any') url="https://github.com/8go/matrix-commander" license=('GPL') -depends=( "python-aiohttp" - "python-aiofiles" - "python-argparse" - "python-markdown" - "python-matrix-nio" - "python-notify2" - "python-pillow" - "python-magic-ahupp") +makedepends=( + "python-build" + "python-installer" + "python-wheel" +) +depends=( + # adapted from requirements.txt: + "python>3.7" + "python-aiohttp" + "python-aiofiles>=0.6.0" + # "python-argparse" part of python since 3.2 + # "python-asyncio" part of python since 3.3 + # "python-datetime" part of standard python + "python-emoji" + "python-markdown" + "python-matrix-nio>=0.14.1" + "python-pillow" + "python-magic" + "python-pyxdg" + # "python-uuid" part of standard python + + # other dependencies: + "python-atomicwrites" # optdepends of matrix-nio, but included because matrix-commander wants it for encryption + "python-cachetools" # optdepends of matrix-nio, but included because matrix-commander wants it for encryption + "python-olm" # optdepends of matrix-nio, but included because matrix-commander wants it for encryption + "python-peewee" # optdepends of matrix-nio, but included because matrix-commander wants it for encryption +) +optdepends=( + "python-notify2: needed for notifications on desktop systems" +) provides=("matrix-commander") conflicts=("matrix-commander") -source=("${pkgname%-git}::git+https://github.com/8go/matrix-commander.git") +source=("${_name}::git+https://github.com/8go/matrix-commander.git") md5sums=('SKIP') pkgver() { - cd "${pkgname%-git}" - printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" + cd "$_name" + printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" } +build() { + cd "$_name" + python -m build --wheel --no-isolation +} package() { - local _site_packages - _site_packages="$(python -c "import site; print(site.getsitepackages()[0])")" - install -d "${pkgdir}${_site_packages}/${pkgname%-git}/bin/" - cd "${pkgname%-git}" || exit 1 - install -D -m 755 "./matrix-commander.py" "${pkgdir}/${_site_packages}/${pkgname%-git}/bin/" - install -d "$pkgdir/usr/bin/" - cd "$pkgdir/usr/bin/" || exit 1 - ln -s "${_site_packages}/${pkgname%-git}/bin/matrix-commander.py" "matrix-commander" + cd "$_name" + python -m installer --destdir="$pkgdir" dist/*.whl } + |