qubes-linux-utils/archlinux/PKGBUILD

69 lines
1.7 KiB
Bash
Raw Permalink Normal View History

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`
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=()
makedepends=(gcc make pkgconfig 'qubes-libvchan')
2013-04-12 14:22:03 +00:00
checkdepends=()
optdepends=()
provides=()
conflicts=()
replaces=()
backup=()
options=('staticlibs')
2013-04-12 14:22:03 +00:00
changelog=
source=(PKGBUILD-initcpio-hook.sh PKGBUILD-initcpio-install.sh)
2013-04-12 14:22:03 +00:00
noextract=()
md5sums=(SKIP)
2013-04-12 14:22:03 +00:00
build() {
for source in qrexec-lib udev qmemman core kernel-modules Makefile dracut; do
2013-04-12 14:22:03 +00:00
(ln -s $srcdir/../$source $srcdir/$source)
done
make all
}
2015-12-16 08:53:07 +00:00
package_qubes-vm-utils() {
depends=(qubes-libvchan imagemagick python2-cairo)
install=PKGBUILD-qubes-vm-utils.install
2013-04-12 14:22:03 +00:00
make 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() {
depends=(qubes-libvchan mkinitcpio dkms grub)
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/
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
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: