2025-03-09 10:29:23 +01:00
|
|
|
# Maintainer: edpibu <git@edgarpierre.fr>
|
|
|
|
pkgname=hasspy-git
|
2025-03-09 11:17:46 +01:00
|
|
|
pkgver=r3.b46e0db
|
2025-03-09 10:29:23 +01:00
|
|
|
pkgrel=1
|
|
|
|
pkgdesc="Home assistant utility"
|
|
|
|
arch=(any)
|
2025-05-05 19:52:00 +02:00
|
|
|
url="https://code.edgarpierre.fr/edpibu/hasspy"
|
2025-03-09 10:29:23 +01:00
|
|
|
license=('GPL-3.0-or-later')
|
2025-03-09 18:51:38 +01:00
|
|
|
depends=('python-paho-mqtt' 'python-pillow')
|
2025-03-09 10:29:23 +01:00
|
|
|
makedepends=('git' 'uv' 'python-installer') # 'bzr', 'git', 'mercurial' or 'subversion'
|
2025-03-10 09:33:21 +01:00
|
|
|
optdepends=('playerctl: Playback control'
|
|
|
|
'wireplumber: Volume control'
|
|
|
|
'libnotify: Notification support')
|
2025-03-09 10:29:23 +01:00
|
|
|
provides=("${pkgname%-git}")
|
|
|
|
conflicts=("${pkgname%-git}")
|
2025-03-09 11:17:46 +01:00
|
|
|
backup=("etc/hasspy/config.toml")
|
2025-03-09 10:29:23 +01:00
|
|
|
source=('FOLDER::VCS+URL#FRAGMENT')
|
|
|
|
sha256sums=('SKIP')
|
|
|
|
|
2025-05-05 19:52:00 +02:00
|
|
|
source=("git+https://code.edgarpierre.fr/edpibu/hasspy.git")
|
2025-03-09 10:29:23 +01:00
|
|
|
|
|
|
|
pkgver() {
|
|
|
|
cd "$srcdir/${pkgname%-git}"
|
|
|
|
|
|
|
|
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
|
|
|
|
}
|
|
|
|
|
|
|
|
build() {
|
|
|
|
cd "$srcdir/${pkgname%-git}"
|
|
|
|
uv build
|
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
|
|
|
cd "$srcdir/${pkgname%-git}"
|
|
|
|
|
|
|
|
python -m installer --destdir="${pkgdir}" dist/*.whl
|
2025-03-09 11:27:57 +01:00
|
|
|
install -Dm644 config.example.toml "${pkgdir}/etc/${pkgname%-git}/config.toml"
|
2025-03-09 11:25:48 +01:00
|
|
|
install -Dm644 ${pkgname%-git}.service "${pkgdir}/usr/lib/systemd/system/${pkgname%-git}.service"
|
2025-03-09 23:51:32 +01:00
|
|
|
install -Dm644 icon.svg "${pkgdir}/usr/share/icons/hicolor/scalable/apps/fr.edgarpierre.hasspy.svg"
|
2025-03-09 10:29:23 +01:00
|
|
|
}
|