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-07-11 16:45:59 +00:00
|
|
|
pkgver=4.3.3
|
2024-08-16 02:06:11 +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() {
|
|
|
|
make install DESTDIR="$pkgdir" LIBDIR=/usr/lib SYSLIBDIR=/lib SBINDIR=/sbin
|
|
|
|
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-07-11 16:45:59 +00:00
|
|
|
95da1f511bb30bca2f895111d91f901a8d17077ea5bf6a363891557e24f3a7bc40b2450eae476932b2450749ff8a94dd78c7590bef428c7ba2d647ebbcf5a86b qubes-vm-utils-v4.3.3.tar.gz
|
2023-08-14 03:34:21 +00:00
|
|
|
aebc606faa95948be77766f164fc40e4be66e4398e7f56ad52ba9de4c8f7de4ec0c4b48b23a3a6dd083d6f19ae1a591f3ae0caf2c696fd061cd8fea4bdf7d4f3 qubes-meminfo-writer.openrc
|
|
|
|
"
|