diff options
author | Florian Bruhin | 2023-08-22 16:31:17 +0200 |
---|---|---|
committer | Florian Bruhin | 2023-08-22 16:31:17 +0200 |
commit | 8aeb0f3547b0eebeaf102ed36a128e2736c6910c (patch) | |
tree | d5b526228e5ae057a322d6c9d2e0a6eb34e73799 | |
parent | dde299fa2836a6bb8aa6ba80bcd30b830a4d283f (diff) | |
download | aur-8aeb0f3547b0eebeaf102ed36a128e2736c6910c.tar.gz |
Clean up, update and fix deps
-rw-r--r-- | .SRCINFO | 12 | ||||
-rw-r--r-- | PKGBUILD | 34 |
2 files changed, 31 insertions, 15 deletions
@@ -1,18 +1,20 @@ pkgbase = barpyrus-git pkgdesc = A python wrapper for lemonbar/conky - pkgver = r94.fa160c6 - pkgrel = 2 + pkgver = r117.a50f18b + pkgrel = 1 url = https://github.com/t-wissmann/barpyrus arch = any license = BSD + makedepends = git depends = python depends = python-setuptools depends = lemonbar - depends = siji-git - depends = herbstluftwm optdepends = conky: To use the conky widget + optdepends = siji-git: Default symbol font + optdepends = herbstluftwm: Default WM integration + optdepends = python-pytz: To use `tz_name` for `widgets.DateTime` + optdepends = python-xlib: To use the trayer integration source = git+https://github.com/t-wissmann/barpyrus.git sha1sums = SKIP pkgname = barpyrus-git - @@ -1,30 +1,44 @@ # Maintainer: Florian Bruhin (The Compiler) <archlinux.org@the-compiler.org> pkgname=barpyrus-git -pkgver=r94.fa160c6 -pkgrel=2 +_pkgname=${pkgname%-git} +pkgver=r117.a50f18b +pkgrel=1 pkgdesc="A python wrapper for lemonbar/conky" arch=(any) url="https://github.com/t-wissmann/barpyrus" license=('BSD') -depends=('python' 'python-setuptools' 'lemonbar' 'siji-git' 'herbstluftwm') -optdepends=('conky: To use the conky widget') +depends=('python' 'python-setuptools' 'lemonbar') +optdepends=( + 'conky: To use the conky widget' + 'siji-git: Default symbol font' + 'herbstluftwm: Default WM integration' + 'python-pytz: To use `tz_name` for `widgets.DateTime`' + 'python-xlib: To use the trayer integration' +) +makedepends=('git') source=("git+https://github.com/t-wissmann/barpyrus.git") sha1sums=('SKIP') +prepare() { + # https://github.com/pypa/setuptools/issues/1347 + git -C "$_pkgname" clean -dfx +} + pkgver() { - cd barpyrus - printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" + cd "$_pkgname" + printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short=7 HEAD)" } build() { - cd barpyrus - python setup.py build + cd "$_pkgname" + python -m build --wheel --no-isolation } package() { - cd barpyrus - python setup.py install --root="${pkgdir}" --optimize=1 --skip-build + cd "$_pkgname" + python -m installer --destdir="$pkgdir" dist/*.whl + install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE" } # vim:set ts=2 sw=2 et: |