Files
pi3-smart-workspace/packaging/aur/PKGBUILD
T
Asger Weirsøe d1ba6747ef Point the AUR upstream URL at the project page
url= now goes to the project's page on asger.weirsøe.dk, which links back
to the source here. The source tarball no longer derives from $url: it
comes from a separate _repo variable, so the build still downloads from
Gitea.

Claude-Session: https://claude.ai/code/session_012LCTmU2ewo8tnM1dByYAoG
2026-10-04 07:29:49 +02:00

26 lines
889 B
Bash

# Maintainer: Asger Geel Weirsoe <asger at weircon dot dk>
# build recipe: https://gitea.weircon.dk/agw/pi3-smart-workspace
pkgname=pi3-smart-workspace
pkgver=0.0.0
pkgrel=1
pkgdesc="Switch i3 workspaces based on which output your mouse cursor is on"
arch=('any')
url="https://asger.weirsøe.dk/en/projects/pi3-smart-workspace"
_repo="https://gitea.weircon.dk/agw/pi3-smart-workspace"
license=('Apache-2.0')
depends=('python' 'i3-wm' 'python-i3ipc' 'python-pynput')
makedepends=('python-build' 'python-installer' 'python-hatchling' 'python-wheel')
source=("$pkgname-$pkgver.tar.gz::$_repo/archive/v$pkgver.tar.gz")
sha256sums=('SKIP')
build() {
cd "$srcdir/$pkgname"
python -m build --wheel --no-isolation
}
package() {
cd "$srcdir/$pkgname"
python -m installer --destdir="$pkgdir" dist/*.whl
install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}