
Pacman automatically handle building of u2fmn.ko. The same mechanism is now used to prepare the kernel automatically when the kernel is updated.
81 lines
2.1 KiB
Bash
81 lines
2.1 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=7
|
|
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
|
|
PKGBUILD-qubes-prepare-vm-kernel.hook
|
|
)
|
|
|
|
md5sums=(e88b50aed7d28087968da728ec1dc2b6
|
|
3d204b0d8acda9cf3ea5ebd5334a04d6
|
|
6b33d5cdacf9873d270bf785e3c4f39b
|
|
8e0754a613a2fa0a578361455d225b48
|
|
)
|
|
|
|
noextract=()
|
|
|
|
|
|
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/share/libalpm/hooks/
|
|
mkdir -p ${pkgdir}/usr/bin/
|
|
ls -la ${pkgdir}/usr/bin
|
|
install -m 755 ${srcdir}/PKGBUILD-qubes-prepare-vm-kernel.sh ${pkgdir}/usr/bin/qubes-prepare-vm-kernel
|
|
|
|
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 611 ${srcdir}/PKGBUILD-qubes-prepare-vm-kernel.hook ${pkgdir}/usr/share/libalpm/hooks/80-qubes-prepare-vm-kernel.hook
|
|
|
|
make install-u2mfn DESTDIR=$pkgdir -C kernel-modules
|
|
|
|
}
|
|
|
|
|
|
# vim:set ts=2 sw=2 et:
|
|
|