2023-08-14 03:34:21 +00:00
|
|
|
# Contributor: Antoine Martin (ayakael) <dev@ayakael.net>
|
2024-06-03 12:15:29 +00:00
|
|
|
# Maintainer: Antoine Martin (ayakael) <dev@ayakael.net>
|
2023-08-14 03:34:21 +00:00
|
|
|
pkgname=qubes-vm-utils
|
|
|
|
subpackages="
|
|
|
|
qubes-vm-kernel-support:support:noarch
|
|
|
|
$pkgname-openrc
|
2023-08-16 02:29:57 +00:00
|
|
|
$pkgname-pyc
|
2023-08-14 03:34:21 +00:00
|
|
|
"
|
2024-11-07 23:55:55 +00:00
|
|
|
pkgver=4.3.5
|
2024-12-01 01:56:01 +00:00
|
|
|
pkgrel=1
|
2023-08-14 03:34:21 +00:00
|
|
|
_gittag="v$pkgver"
|
|
|
|
pkgdesc="Common Linux files for Qubes VM."
|
|
|
|
arch="x86_64"
|
|
|
|
url="https://github.com/QubesOS/qubes-linux-utils"
|
|
|
|
license='GPL'
|
|
|
|
depends="
|
|
|
|
imagemagick
|
|
|
|
py3-pillow
|
|
|
|
py3-numpy
|
|
|
|
"
|
|
|
|
makedepends="
|
|
|
|
gcc
|
|
|
|
make
|
|
|
|
pkgconfig
|
|
|
|
py3-setuptools
|
2023-08-16 02:29:57 +00:00
|
|
|
icu-dev
|
2023-08-14 03:34:21 +00:00
|
|
|
qubes-libvchan-xen-dev
|
|
|
|
xen-dev
|
|
|
|
"
|
|
|
|
source="
|
|
|
|
$pkgname-$_gittag.tar.gz::https://github.com/QubesOS/qubes-linux-utils/archive/refs/tags/$_gittag.tar.gz
|
|
|
|
qubes-meminfo-writer.openrc
|
|
|
|
"
|
|
|
|
options="!check" # No testsuite
|
|
|
|
builddir="$srcdir"/${pkgname/vm/linux}-${_gittag/v}
|
|
|
|
|
|
|
|
build() {
|
|
|
|
export BACKEND_VMM=xen
|
|
|
|
make all
|
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
2024-10-16 23:36:49 +00:00
|
|
|
make install DESTDIR="$pkgdir" LIBDIR=/usr/lib SYSLIBDIR=/usr/lib SBINDIR=/usr/sbin
|
2023-08-14 03:34:21 +00:00
|
|
|
install -Dm 755 "$srcdir"/qubes-meminfo-writer.openrc "$pkgdir"/etc/init.d/qubes-meminfo-writer
|
|
|
|
}
|
|
|
|
|
|
|
|
support() {
|
|
|
|
depends="
|
|
|
|
mkinitcpio
|
|
|
|
dkms
|
|
|
|
grub
|
|
|
|
"
|
|
|
|
cd "$builddir"
|
|
|
|
mkdir -p "$subpkgdir"/usr/lib/initcpio/install/
|
|
|
|
mkdir -p "$subpkgdir"/usr/lib/initcpio/hooks/
|
|
|
|
mkdir -p "$subpkgdir"/usr/lib/qubes/
|
|
|
|
mkdir -p "$subpkgdir"/usr/bin/
|
|
|
|
|
|
|
|
install -m 755 "$builddir"/dracut/full-dmroot/qubes_cow_setup.sh "$subpkgdir"/usr/lib/qubes/qubes_cow_setup.sh
|
|
|
|
}
|
|
|
|
sha512sums="
|
2024-11-07 23:55:55 +00:00
|
|
|
98cbcee3d459635257703cbc44b710b301d644f5d9a5af3348f523707d7acc7ffd8d74bde2917b916e5b3ae2e9332ece695c71521b4041c209451a86643e26f3 qubes-vm-utils-v4.3.5.tar.gz
|
2024-10-16 23:36:49 +00:00
|
|
|
c29bac0c6b9a0c81ee42e88541d9216549276448a02c3005ea20d85c7eda483cee28bbc159098bd42badc7ed80058734311931ee4ef13e170e49f83cf3f5a9ae qubes-meminfo-writer.openrc
|
2023-08-14 03:34:21 +00:00
|
|
|
"
|