diff options
author | root <root@rshg054.dnsready.net> | 2012-12-26 02:42:49 -0800 |
---|---|---|
committer | root <root@rshg054.dnsready.net> | 2012-12-26 02:42:49 -0800 |
commit | 93079feae1048abe4ebe1ddc66197f31e1206101 (patch) | |
tree | 36344f21a4386e4c40ac76b7710b0e146e30c398 /community/virtualbox-modules | |
parent | 6fbdd2899f39266e458531dcffefb85b9ce8d1b9 (diff) |
Wed Dec 26 02:41:56 PST 2012
Diffstat (limited to 'community/virtualbox-modules')
-rw-r--r-- | community/virtualbox-modules/PKGBUILD | 28 |
1 files changed, 13 insertions, 15 deletions
diff --git a/community/virtualbox-modules/PKGBUILD b/community/virtualbox-modules/PKGBUILD index a3f87ede8..8dd813d13 100644 --- a/community/virtualbox-modules/PKGBUILD +++ b/community/virtualbox-modules/PKGBUILD @@ -1,23 +1,23 @@ -# $Id: PKGBUILD 81593 2012-12-24 16:28:35Z seblu $ +# $Id: PKGBUILD 81643 2012-12-25 14:12:31Z seblu $ # Maintainer: Ionut Biru <ibiru@archlinux.org> # Maintainer: Sébastien Luttringer <seblu@aur.archlinux.org> pkgbase=virtualbox-modules pkgname=('virtualbox-host-modules' 'virtualbox-guest-modules') pkgver=4.2.6 -pkgrel=1 +pkgrel=3 arch=('i686' 'x86_64') url='http://virtualbox.org' license=('GPL') makedepends=('linux-headers' "virtualbox-host-dkms>=$pkgver" "virtualbox-guest-dkms>=$pkgver" - 'expac') + 'expac' + 'bc') build() { - # current kernel version - _kernver=3.7.0-1-ARCH _kernver=$(expac -Q '%v' linux-headers)-ARCH + # dkms need modification to be run as user cp -r /var/lib/dkms . echo "dkms_tree='$srcdir/dkms'" > dkms.conf @@ -30,16 +30,15 @@ build() { } package_virtualbox-host-modules(){ + _kernver=$(expac -Q '%v' linux-headers)-ARCH + _extraver=extramodules-${_kernver%.*}-ARCH + pkgdesc='Host kernel modules for VirtualBox' - depends=('linux>=3.7' 'linux<3.8') + depends=("linux>=${_kernver%.*}" "linux<$(echo "${_kernver%.*}+0.1"|bc)") replaces=('virtualbox-modules') conflicts=('virtualbox-modules') install=virtualbox-host-modules.install - _kernver=3.7.0-1-ARCH - _kernver=$(expac -Q '%v' linux-headers)-ARCH - _extraver=extramodules-${_kernver%.*}-ARCH - install -dm755 "$pkgdir/usr/lib/modules/$_extraver" cd "dkms/vboxhost/$pkgver/$_kernver/$CARCH/module" install -m644 * "$pkgdir/usr/lib/modules/$_extraver" @@ -48,17 +47,16 @@ package_virtualbox-host-modules(){ } package_virtualbox-guest-modules(){ + _kernver=$(expac -Q '%v' linux-headers)-ARCH + _extraver=extramodules-${_kernver%.*}-ARCH + pkgdesc='Guest kernel modules for VirtualBox' license=('GPL') - depends=('linux>=3.7' 'linux<3.8') + depends=("linux>=${_kernver%.*}" "linux<$(echo "${_kernver%.*}+0.1"|bc)") replaces=('virtualbox-archlinux-modules') conflicts=('virtualbox-archlinux-modules') install=virtualbox-guest-modules.install - _kernver=3.7.0-1-ARCH - _kernver=$(expac -Q '%v' linux-headers)-ARCH - _extraver=extramodules-${_kernver%.*}-ARCH - install -dm755 "$pkgdir/usr/lib/modules/$_extraver" cd "dkms/vboxguest/$pkgver/$_kernver/$CARCH/module" install -m644 * "$pkgdir/usr/lib/modules/$_extraver" |