python-compute/packaging/archlinux/PKGBUILD

22 lines
703 B
Bash
Raw Permalink Normal View History

2024-01-16 22:26:59 +03:00
pkgname=compute
2024-01-16 22:51:45 +03:00
pkgver='%placeholder%'
2024-01-16 22:26:59 +03:00
pkgrel=1
pkgdesc='Compute instances management library'
arch=(any)
url=https://get.lulzette.ru/hstack/compute
license=('GPL-3-or-later')
makedepends=(python python-pip)
2024-01-16 22:51:45 +03:00
depends=(python libvirt libvirt-python qemu-base qemu-system-x86 qemu-img)
optdepends=(
'dnsmasq: required for default NAT/DHCP'
'iptables-nft: required for default NAT'
)
2024-01-16 22:26:59 +03:00
provides=(compute)
conflicts=()
package() {
pip install --no-cache-dir --no-deps --root $pkgdir ../$pkgname-*.tar.gz
install -Dm644 ../completion.bash $pkgdir/usr/share/bash-completion/completions/compute
2024-04-22 14:06:29 +03:00
install -Dm644 $pkgdir/usr/lib/*/site-packages/computed.toml $pkgdir/etc/compute/computed.toml
2024-01-16 22:26:59 +03:00
}