c046807641
Since converting GUI agent to use grant tables, it isn't needed anymore. This also allows to not install dkms anymore. Fixes QubesOS/qubes-issues#4280
76 lines
2.0 KiB
Bash
76 lines
2.0 KiB
Bash
# This is an example PKGBUILD file. Use this as a start to creating your own,
|
|
# and remove these comments. For more information, see 'man PKGBUILD'.
|
|
# NOTE: Please fill out the license field for your package! If it is unknown,
|
|
# then please put 'unknown'.
|
|
|
|
# Maintainer: Olivier Medoc <o_medoc@yahoo.fr>
|
|
pkgname=(qubes-vm-utils qubes-vm-kernel-support)
|
|
pkgver=`cat version`
|
|
pkgrel=10
|
|
epoch=
|
|
pkgdesc="Common Linux files for Qubes VM."
|
|
arch=("x86_64")
|
|
url="http://qubes-os.org/"
|
|
license=('GPL')
|
|
groups=()
|
|
makedepends=(gcc make pkgconfig 'python-setuptools' 'python2-setuptools')
|
|
checkdepends=()
|
|
optdepends=()
|
|
provides=()
|
|
conflicts=()
|
|
replaces=()
|
|
backup=()
|
|
options=('staticlibs')
|
|
changelog=
|
|
|
|
source=(PKGBUILD-initcpio-hook.sh PKGBUILD-initcpio-install.sh)
|
|
|
|
noextract=()
|
|
md5sums=(SKIP)
|
|
|
|
|
|
build() {
|
|
|
|
for source in qrexec-lib udev qmemman core kernel-modules Makefile dracut imgconverter; do
|
|
(ln -s $srcdir/../$source $srcdir/$source)
|
|
done
|
|
|
|
# Build all with python2
|
|
PYTHON=python2 make all
|
|
|
|
# Build imgconverter with python3
|
|
make -C imgconverter all
|
|
|
|
|
|
}
|
|
|
|
package_qubes-vm-utils() {
|
|
depends=(imagemagick python2-cairo python2-pillow python2-numpy python-pillow python-numpy)
|
|
install=PKGBUILD-qubes-vm-utils.install
|
|
|
|
# Install all for python2
|
|
PYTHON=python2 make install DESTDIR=$pkgdir LIBDIR=/usr/lib SYSLIBDIR=/usr/lib SBINDIR=/usr/bin
|
|
|
|
# Install imgconverter as python3
|
|
make -C imgconverter install DESTDIR=$pkgdir LIBDIR=/usr/lib SYSLIBDIR=/usr/lib SBINDIR=/usr/bin
|
|
|
|
}
|
|
|
|
package_qubes-vm-kernel-support() {
|
|
depends=(mkinitcpio grub)
|
|
install=PKGBUILD-qubes-vm-kernel-support.install
|
|
|
|
mkdir -p ${pkgdir}/usr/lib/initcpio/install/
|
|
mkdir -p ${pkgdir}/usr/lib/initcpio/hooks/
|
|
mkdir -p ${pkgdir}/usr/lib/qubes/
|
|
mkdir -p ${pkgdir}/usr/bin/
|
|
|
|
install -m 611 ${srcdir}/PKGBUILD-initcpio-install.sh ${pkgdir}/usr/lib/initcpio/install/qubes
|
|
install -m 611 ${srcdir}/PKGBUILD-initcpio-hook.sh ${pkgdir}/usr/lib/initcpio/hooks/qubes
|
|
install -m 755 ${srcdir}/dracut/full-dmroot/qubes_cow_setup.sh ${pkgdir}/usr/lib/qubes/qubes_cow_setup.sh
|
|
}
|
|
|
|
|
|
# vim:set ts=2 sw=2 et:
|
|
|