diff options
Diffstat (limited to 'community-testing/virtualbox-modules/PKGBUILD')
-rw-r--r-- | community-testing/virtualbox-modules/PKGBUILD | 69 |
1 files changed, 0 insertions, 69 deletions
diff --git a/community-testing/virtualbox-modules/PKGBUILD b/community-testing/virtualbox-modules/PKGBUILD deleted file mode 100644 index 5cb7fc64d..000000000 --- a/community-testing/virtualbox-modules/PKGBUILD +++ /dev/null @@ -1,69 +0,0 @@ -# $Id: PKGBUILD 78656 2012-10-22 13:29:39Z tpowa $ -# 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.2 -pkgrel=2 -arch=('i686' 'x86_64') -url='http://virtualbox.org' -license=('GPL') -makedepends=('linux-headers' - "virtualbox-host-source>=$pkgver" - "virtualbox-guest-source>=$pkgver" - 'expac') - -build() { - # current kernel version - _kernver=$(expac -Q '%v' linux-headers)-ARCH - #_kernver=3.6.0-1-ARCH - # 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(){ - pkgdesc='Host kernel modules for VirtualBox' - depends=('linux>=3.6' 'linux<3.7') - replaces=('virtualbox-modules') - conflicts=('virtualbox-modules') - install=virtualbox-host-modules.install - - _kernver=$(expac -Q '%v' linux-headers)-ARCH - # _kernver=3.6.0-1-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" - find "$pkgdir" -name '*.ko' -exec gzip -9 {} + - sed -ie "s/EXTRAMODULES='.*'/EXTRAMODULES='$_extraver'/" "$startdir/virtualbox-host-modules.install" -} - -package_virtualbox-guest-modules(){ - pkgdesc='Guest kernel modules for VirtualBox' - license=('GPL') - depends=('linux>=3.6' 'linux<3.7') - replaces=('virtualbox-archlinux-modules') - conflicts=('virtualbox-archlinux-modules') - install=virtualbox-guest-modules.install - - _kernver=$(expac -Q '%v' linux-headers)-ARCH - #_kernver=3.6.0-1-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" - find "$pkgdir" -name '*.ko' -exec gzip -9 {} + - sed -ie "s/EXTRAMODULES='.*'/EXTRAMODULES='$_extraver'/" "$startdir/virtualbox-guest-modules.install" -} - -# vim:set ts=2 sw=2 et: |