summaryrefslogtreecommitdiff
path: root/libre/virtualbox-libre-modules-lts/build.sh
blob: 895bea0b14d05a8deac3e8d61aca269b9ec2117f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#!/bin/bash

set -e

if (( $# != 1 )); then
  echo "usage: $0 extra"
  echo "       $0 testing"
  exit 1
fi

here=$PWD
cd /var/empty
linux32 makechrootpkg -cu -I "$here"/../../virtualbox/trunk/virtualbox-libre-host-dkms-*-i686.pkg.tar.xz -r /var/lib/archbuild/$1-i686
linux32 makechrootpkg -I "$here"/../../virtualbox/trunk/virtualbox-libre-guest-dkms-*-i686.pkg.tar.xz  -r /var/lib/archbuild/$1-i686
cd "$here"
linux32 makechrootpkg -n -r /var/lib/archbuild/$1-i686

cd /var/empty
makechrootpkg -cu -I "$here"/../../virtualbox/trunk/virtualbox-libre-host-dkms-*-x86_64.pkg.tar.xz -r /var/lib/archbuild/$1-x86_64
makechrootpkg -I "$here"/../../virtualbox/trunk/virtualbox-libre-guest-dkms-*-x86_64.pkg.tar.xz  -r /var/lib/archbuild/$1-x86_64
cd "$here"
makechrootpkg -n -r /var/lib/archbuild/$1-x86_64


# vim:set ts=2 sw=2 ft=sh et: