#!/bin/bash # linux # # Douglas Thrift # # $Id$ name=linux version=2.6.20.1 revision=0 categories=(base) description='Linux kernel and modules' url='http://www.kernel.org/' depends=('base/grub' 'base/module-init-tools') sources=(`site_kernel`) # XXX: do more stuffs function build() { cd $source/$sourcedir || return $? gmake mrproper && gmake menuconfig && gmake && gmake INSTALL_MOD_PATH=$package modules_install || return $? rm -fv $package/lib/modules/$version-$revision/@(build|source) || return $? install -dv $package/boot || return $? cp -v arch/i386/boot/bzImage $package/boot/linux-$version-$revision || return $? cp -v System.map $package/boot/System.map-$version-$revision || return $? cp -v .config $package/boot/config-$version-$revision || return $? install -dv $package/usr/share/doc/$name-$version || return $? cp -rv Documentation/* $package/usr/share/doc/$name-$version }