updated on Mon Jan 16 12:07:49 UTC 2012
[aur-mirror.git] / linux-raq550 / PKGBUILD
blob32ba71151f68f3a44833ba3c9752604d357f5582
1 pkgname=linux-raq550
2 pkgver=2.6.24.3
3 pkgrel=6
4 pkgdesc='The linux kernel for Sun Cobalt RAQ550 machines'
5 arch=(
6         'i686'
8 url='http://www.kernel.org/'
9 license=GPL
10 depends=(
11         'coreutils'
12         'module-init-tools'
14 makedepends=('gcc' 'gzip' 'patch')
15 backup=()
16 source=(
17         "http://www.kernel.org/pub/linux/kernel/v2.6/linux-$pkgver.tar.bz2"
18         "config-raq550.conf"
19         "linux-cobalt-$pkgver.patch"
21 md5sums=(
22         'bb3f3af4d8feb3b81a2f14aa90186316'
23         'd79c0b821a4b21c63704ffadfb378b25'
24         'c7ab2a48a3da3acc1fb3009a75db01ea'
27 build() {
28         # Apply configuration
29         cat config-raq550.conf > $startdir/src/linux-$pkgver/.config
30         
31         # cd to the kernel build directory
32         cd $startdir/src/linux-$pkgver/
33         
34         # Patch the kernel for supporting specific Sun Cobalt hardware
35         patch -p0 < $startdir/linux-cobalt-$pkgver.patch
36         
37         # Make necessary directories
38         mkdir -p $startdir/pkg/boot
39         
40         # Make the boot image and kernel modules
41         make vmlinux
42         make modules
43         
44         # Install kernel modules
45         make INSTALL_MOD_PATH=$startdir/pkg modules_install
46         
47         # Install the kernel
48         gzip -9 -c $startdir/src/linux-$pkgver/vmlinux > $startdir/pkg/boot/vmlinux.gz