1 # Maintainer: Thomas Dziedzic < gostrc at gmail >
2 # Contributor: Schnouki <thomas.jost@gmail.com>
3 # Contributor: Emmanuel GRAS <gras.emmanuel@gmail.com>
5 pkgname=kernel26-source
6 # pkgname=kernel26-custom # Build kernel with a different name
8 pkgver=${_basekernel}.3
10 pkgdesc="The Linux Kernel and modules source code."
11 _patchname="patch-${pkgver}-${pkgrel}-ARCH"
12 #_patchname="patch-${pkgver}-1-ARCH"
15 url="http://www.kernel.org"
18 source=(ftp://ftp.kernel.org/pub/linux/kernel/v2.6/linux-$_basekernel.tar.bz2
19 ftp://ftp.archlinux.org/other/kernel26/${_patchname}.bz2
20 # the main kernel config files
22 # standard config files for mkinitcpio ramdisk
24 md5sums=('1aab7a741abe08d42e8eccf20de61e05'
25 'b23d7def30e57242cfe088f4d8ca8baa'
26 'de7cf2c54104b88e3385683f47fedaef'
27 '8be1f60e54eb505b7e67d39fd2233103'
28 '25584700a0a679542929c4bed31433b6')
31 cd ${srcdir}/linux-$_basekernel
33 # See http://projects.archlinux.org/linux-2.6-ARCH.git/
34 patch -Np1 -i ${srcdir}/${_patchname}
36 if [ "$CARCH" = "x86_64" ]; then
37 cat ../config.x86_64 >./.config
39 cat ../config >./.config
41 if [ "${_kernelname}" != "" ]; then
42 sed -i "s|CONFIG_LOCALVERSION=.*|CONFIG_LOCALVERSION=\"${_kernelname}\"|g" ./.config
47 # Configure the kernel. Replace the line below with one of your choice.
48 #make menuconfig # CLI menu for configuration
49 #make nconfig # new CLI menu for configuration
50 #make xconfig # X-based configuration
51 #make oldconfig # using old config from previous kernel version
52 # ... or manually edit .config
55 # this is useful to configure the kernel
61 # Keep the source code
62 mkdir -p $pkgdir/usr/src
63 mv $srcdir/linux-$_basekernel $pkgdir/usr/src/linux-$_basekernel
65 # Add link from the modules directory
66 mkdir -p $pkgdir/lib/modules/$_kernver
67 cd $pkgdir/lib/modules/$_kernver
68 ln -s ../../../usr/src/linux-$_basekernel source