65 lines
1.6 KiB
Text
65 lines
1.6 KiB
Text
# Maintainer: Antoine Martin (ayakael) <dev@ayakael.net>
|
|
# Contributor: Antoine Martin (ayakael) <dev@ayakael.net>
|
|
|
|
pkgname=qubes-vm-utils
|
|
subpackages="
|
|
qubes-vm-kernel-support:support:noarch
|
|
$pkgname-openrc
|
|
$pkgname-pyc
|
|
"
|
|
pkgver=4.2.11
|
|
pkgrel=0
|
|
_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
|
|
icu-dev
|
|
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="
|
|
b7a60219d7928ae1cf20accc843f1c0408e0d4219dd029357ce780b24110f070a5296dfbf3f6ecac8132d2798a76fac0a61228ac092443a490d0356ae6bfadbb qubes-vm-utils-v4.2.11.tar.gz
|
|
aebc606faa95948be77766f164fc40e4be66e4398e7f56ad52ba9de4c8f7de4ec0c4b48b23a3a6dd083d6f19ae1a591f3ae0caf2c696fd061cd8fea4bdf7d4f3 qubes-meminfo-writer.openrc
|
|
"
|