e398441481
Archlinux now support pacman hooks that automatically handle both building modules through dkms and rebuilding the initcpio. For this reason, support scripts are not required anymore.
68 lines
1.7 KiB
Bash
68 lines
1.7 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=5
|
|
epoch=
|
|
pkgdesc="Common Linux files for Qubes VM."
|
|
arch=("x86_64")
|
|
url="http://qubes-os.org/"
|
|
license=('GPL')
|
|
groups=()
|
|
makedepends=(gcc make pkgconfig 'qubes-libvchan')
|
|
checkdepends=()
|
|
optdepends=()
|
|
provides=()
|
|
conflicts=()
|
|
replaces=()
|
|
backup=()
|
|
options=('staticlibs')
|
|
changelog=
|
|
|
|
source=(PKGBUILD-initcpio-hook.sh PKGBUILD-initcpio-install.sh PKGBUILD-qubes-prepare-vm-kernel.sh)
|
|
|
|
noextract=()
|
|
md5sums=(e88b50aed7d28087968da728ec1dc2b6 3d204b0d8acda9cf3ea5ebd5334a04d6 76ffd56b376136d7ee44190a0531a4af)
|
|
|
|
|
|
build() {
|
|
|
|
for source in qrexec-lib udev qmemman core kernel-modules Makefile; do
|
|
(ln -s $srcdir/../$source $srcdir/$source)
|
|
done
|
|
|
|
make all
|
|
|
|
}
|
|
|
|
package_qubes-vm-utils() {
|
|
depends=(qubes-libvchan imagemagick python2-cairo)
|
|
install=PKGBUILD-qubes-vm-utils.install
|
|
|
|
make install DESTDIR=$pkgdir LIBDIR=/usr/lib SYSLIBDIR=/usr/lib SBINDIR=/usr/bin
|
|
|
|
}
|
|
|
|
package_qubes-vm-kernel-support() {
|
|
depends=(qubes-libvchan mkinitcpio dkms 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/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
|
|
|
|
make install-u2mfn DESTDIR=$pkgdir -C kernel-modules
|
|
|
|
}
|
|
|
|
|
|
# vim:set ts=2 sw=2 et:
|
|
|