2013-04-12 14:22:03 +00:00
|
|
|
# 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>
|
2015-12-16 08:53:07 +00:00
|
|
|
pkgname=(qubes-vm-utils qubes-vm-kernel-support)
|
2013-04-12 14:22:03 +00:00
|
|
|
pkgver=`cat version`
|
2017-01-29 14:10:33 +00:00
|
|
|
pkgrel=10
|
2013-04-12 14:22:03 +00:00
|
|
|
epoch=
|
|
|
|
pkgdesc="Common Linux files for Qubes VM."
|
|
|
|
arch=("x86_64")
|
|
|
|
url="http://qubes-os.org/"
|
|
|
|
license=('GPL')
|
|
|
|
groups=()
|
2019-04-07 20:22:45 +00:00
|
|
|
makedepends=(gcc make pkgconfig 'python-setuptools' 'python2-setuptools')
|
2013-04-12 14:22:03 +00:00
|
|
|
checkdepends=()
|
|
|
|
optdepends=()
|
|
|
|
provides=()
|
|
|
|
conflicts=()
|
|
|
|
replaces=()
|
|
|
|
backup=()
|
2013-11-28 13:53:26 +00:00
|
|
|
options=('staticlibs')
|
2013-04-12 14:22:03 +00:00
|
|
|
changelog=
|
|
|
|
|
2016-12-28 07:38:01 +00:00
|
|
|
source=(PKGBUILD-initcpio-hook.sh PKGBUILD-initcpio-install.sh)
|
2013-04-12 14:22:03 +00:00
|
|
|
|
|
|
|
noextract=()
|
2017-01-29 14:10:33 +00:00
|
|
|
md5sums=(SKIP)
|
2013-04-12 14:22:03 +00:00
|
|
|
|
|
|
|
|
|
|
|
build() {
|
|
|
|
|
2017-10-22 17:17:12 +00:00
|
|
|
for source in qrexec-lib udev qmemman core kernel-modules Makefile dracut imgconverter; do
|
2013-04-12 14:22:03 +00:00
|
|
|
(ln -s $srcdir/../$source $srcdir/$source)
|
|
|
|
done
|
|
|
|
|
2017-10-22 17:17:12 +00:00
|
|
|
# Build all with python2
|
|
|
|
PYTHON=python2 make all
|
|
|
|
|
|
|
|
# Build imgconverter with python3
|
|
|
|
make -C imgconverter all
|
|
|
|
|
2013-04-12 14:22:03 +00:00
|
|
|
|
|
|
|
}
|
|
|
|
|
2015-12-16 08:53:07 +00:00
|
|
|
package_qubes-vm-utils() {
|
2019-04-07 20:22:45 +00:00
|
|
|
depends=(imagemagick python2-cairo python2-pillow python2-numpy python-pillow python-numpy)
|
2015-12-19 10:07:21 +00:00
|
|
|
install=PKGBUILD-qubes-vm-utils.install
|
2013-04-12 14:22:03 +00:00
|
|
|
|
2017-10-22 17:17:12 +00:00
|
|
|
# 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
|
2013-04-12 14:22:03 +00:00
|
|
|
|
|
|
|
}
|
|
|
|
|
2015-12-16 08:53:07 +00:00
|
|
|
package_qubes-vm-kernel-support() {
|
2019-04-07 20:22:45 +00:00
|
|
|
depends=(mkinitcpio dkms grub)
|
2015-12-19 10:07:21 +00:00
|
|
|
install=PKGBUILD-qubes-vm-kernel-support.install
|
2015-12-16 08:53:07 +00:00
|
|
|
|
|
|
|
mkdir -p ${pkgdir}/usr/lib/initcpio/install/
|
|
|
|
mkdir -p ${pkgdir}/usr/lib/initcpio/hooks/
|
2017-01-29 14:10:33 +00:00
|
|
|
mkdir -p ${pkgdir}/usr/lib/qubes/
|
2015-12-16 08:53:07 +00:00
|
|
|
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
|
2017-01-29 14:10:33 +00:00
|
|
|
install -m 755 ${srcdir}/dracut/full-dmroot/qubes_cow_setup.sh ${pkgdir}/usr/lib/qubes/qubes_cow_setup.sh
|
2015-12-16 08:53:07 +00:00
|
|
|
make install-u2mfn DESTDIR=$pkgdir -C kernel-modules
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2013-04-12 14:22:03 +00:00
|
|
|
# vim:set ts=2 sw=2 et:
|
|
|
|
|