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`
|
2015-12-16 08:54:54 +00:00
|
|
|
pkgrel=4
|
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=()
|
2015-07-08 09:08:47 +00:00
|
|
|
depends=(qubes-libvchan imagemagick python2-cairo)
|
2015-12-16 08:51:46 +00:00
|
|
|
makedepends=(gcc make pkgconfig 'qubes-libvchan')
|
2013-04-12 14:22:03 +00:00
|
|
|
checkdepends=()
|
|
|
|
optdepends=()
|
|
|
|
provides=()
|
|
|
|
conflicts=()
|
|
|
|
replaces=()
|
|
|
|
backup=()
|
2013-11-28 13:53:26 +00:00
|
|
|
options=('staticlibs')
|
|
|
|
install=PKGBUILD-qubes-vm-utils.install
|
2013-04-12 14:22:03 +00:00
|
|
|
changelog=
|
|
|
|
|
2015-12-16 08:53:07 +00:00
|
|
|
source=(PKGBUILD-initcpio-hook.sh PKGBUILD-initcpio-install.sh PKGBUILD-qubes-prepare-vm-kernel.sh)
|
2013-04-12 14:22:03 +00:00
|
|
|
|
|
|
|
noextract=()
|
2015-12-16 08:54:54 +00:00
|
|
|
md5sums=(e88b50aed7d28087968da728ec1dc2b6 3d204b0d8acda9cf3ea5ebd5334a04d6 76ffd56b376136d7ee44190a0531a4af)
|
2013-04-12 14:22:03 +00:00
|
|
|
|
|
|
|
|
|
|
|
build() {
|
|
|
|
|
2015-12-16 08:53:07 +00:00
|
|
|
for source in qrexec-lib udev qmemman core kernel-modules Makefile; 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() {
|
2013-04-12 14:22:03 +00:00
|
|
|
|
2015-12-15 14:19:21 +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=(mkinitcpio dkms)
|
|
|
|
|
|
|
|
mkdir -p ${pkgdir}/usr/lib/initcpio/install/
|
|
|
|
mkdir -p ${pkgdir}/usr/lib/initcpio/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
|
|
|
|
|
|
|
|
make install-u2mfn DESTDIR=$pkgdir -C kernel-modules
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2013-04-12 14:22:03 +00:00
|
|
|
# vim:set ts=2 sw=2 et:
|
|
|
|
|