diff options
author | root <root@rshg054.dnsready.net> | 2013-07-19 01:10:32 -0700 |
---|---|---|
committer | root <root@rshg054.dnsready.net> | 2013-07-19 01:10:32 -0700 |
commit | 8fbc0076a4827ddc6af92e0b9daa4c4c31450808 (patch) | |
tree | 03fd0e2921ebd53228d9a93e32ed3976b636cbea /community/virtualbox-modules-lts/PKGBUILD | |
parent | e445a313723389ba9ee1fded025c567dae5b21ea (diff) |
Fri Jul 19 01:09:18 PDT 2013
Diffstat (limited to 'community/virtualbox-modules-lts/PKGBUILD')
-rw-r--r-- | community/virtualbox-modules-lts/PKGBUILD | 68 |
1 files changed, 68 insertions, 0 deletions
diff --git a/community/virtualbox-modules-lts/PKGBUILD b/community/virtualbox-modules-lts/PKGBUILD new file mode 100644 index 000000000..603ad9195 --- /dev/null +++ b/community/virtualbox-modules-lts/PKGBUILD @@ -0,0 +1,68 @@ +# $Id: PKGBUILD 93526 2013-07-05 00:46:38Z seblu $ +# Maintainer: Bartłomiej Piotrowski <nospam@bpiotrowski.pl> +# Contributor: Ionut Biru <ibiru@archlinux.org> +# Contributor: Sébastien Luttringer + +pkgbase=virtualbox-modules-lts +pkgname=('virtualbox-host-modules-lts' 'virtualbox-guest-modules-lts') +pkgver=4.2.16 +pkgrel=1 +arch=('i686' 'x86_64') +url='http://virtualbox.org' +license=('GPL') +makedepends=('linux-lts>=3.0' 'linux-lts<3.1' + 'linux-lts-headers>=3.0' 'linux-lts-headers<3.1' + "virtualbox-host-dkms>=$pkgver" + "virtualbox-guest-dkms>=$pkgver" + 'expac' + 'sed' + 'bc') + +# remember to also adjust the .install files and the package deps below +_extramodules=extramodules-3.0-lts + +build() { + _kernver=$(cat /usr/lib/modules/$_extramodules/version) + # dkms need modification to be run as user + cp -r /var/lib/dkms . + echo "dkms_tree='$srcdir/dkms'" > dkms.conf + # build host modules + msg2 'Host modules' + dkms --dkmsframework dkms.conf build "vboxhost/$pkgver" -k "$_kernver" + # build guest modules + msg2 'Guest modules' + dkms --dkmsframework dkms.conf build "vboxguest/$pkgver" -k "$_kernver" +} + +package_virtualbox-host-modules-lts(){ + _kernver=$(cat /usr/lib/modules/$_extramodules/version) + pkgdesc='Host kernel modules for VirtualBox' + depends=('linux-lts>=3.0' 'linux-lts<3.1') + replaces=('virtualbox-modules-lts') + conflicts=('virtualbox-modules-lts') + provides=("virtualbox-host-modules=$pkgver") + install=virtualbox-host-modules-lts.install + + cd "dkms/vboxhost/$pkgver/$_kernver/$CARCH/module" + install -dm755 "$pkgdir/usr/lib/modules/$_extramodules/" + install -m644 * "$pkgdir/usr/lib/modules/$_extramodules/" + find "$pkgdir" -name '*.ko' -exec gzip -9 {} + +} + +package_virtualbox-guest-modules-lts(){ + _kernver=$(cat /usr/lib/modules/$_extramodules/version) + pkgdesc='Guest kernel modules for VirtualBox' + license=('GPL') + depends=('linux-lts>=3.0' 'linux-lts<3.1') + replaces=('virtualbox-archlinux-modules-lts') + conflicts=('virtualbox-archlinux-modules-lts') + provides=("virtualbox-host-modules=$pkgver") + install=virtualbox-guest-modules-lts.install + + cd "dkms/vboxguest/$pkgver/$_kernver/$CARCH/module" + install -dm755 "$pkgdir/usr/lib/modules/$_extramodules/" + install -m644 * "$pkgdir/usr/lib/modules/$_extramodules/" + find "$pkgdir" -name '*.ko' -exec gzip -9 {} + +} + +# vim:set ts=2 sw=2 et: |