bump to latest version

This commit is contained in:
Tobias Powalowski 2013-06-08 08:17:48 +00:00
parent e79102598e
commit 02b91bee2c
2 changed files with 10 additions and 8 deletions

View File

@ -4,7 +4,7 @@
pkgbase=linux # Build stock -ARCH kernel pkgbase=linux # Build stock -ARCH kernel
#pkgbase=linux-custom # Build kernel with a different name #pkgbase=linux-custom # Build kernel with a different name
_srcname=linux-3.9 _srcname=linux-3.9
pkgver=3.9.4 pkgver=3.9.5
pkgrel=1 pkgrel=1
arch=('i686' 'x86_64') arch=('i686' 'x86_64')
url="http://www.kernel.org/" url="http://www.kernel.org/"
@ -19,7 +19,7 @@ source=("http://www.kernel.org/pub/linux/kernel/v3.x/${_srcname}.tar.xz"
'linux.preset' 'linux.preset'
'change-default-console-loglevel.patch') 'change-default-console-loglevel.patch')
md5sums=('4348c9b6b2eb3144d601e87c19d5d909' md5sums=('4348c9b6b2eb3144d601e87c19d5d909'
'922c4553299e6692a28761d3032fc012' 'aa22187ae5cd482a69097e9e59244491'
'1eb73dcb091d2671138f87fe62bd9735' '1eb73dcb091d2671138f87fe62bd9735'
'24dff05a9f8d53e92457077e6ca6b6ae' '24dff05a9f8d53e92457077e6ca6b6ae'
'eb14dcfd80c00852ef81ded6e826826a' 'eb14dcfd80c00852ef81ded6e826826a'
@ -31,7 +31,7 @@ _kernelname=${pkgbase#linux}
# x86_64 # x86_64
# 3257a59402459dcc9e6f6ddd0144c385 /lib/modules/3.9.4-1-ARCH/modules.symbols # 3257a59402459dcc9e6f6ddd0144c385 /lib/modules/3.9.4-1-ARCH/modules.symbols
# i686 # i686
# bc0b5eb05278fcfa92250373217eaca1 /lib/modules/3.9.3-1-ARCH/modules.symbols # bc0b5eb05278fcfa92250373217eaca1 /lib/modules/3.9.4-1-ARCH/modules.symbols
prepare() { prepare() {
cd "${srcdir}/${_srcname}" cd "${srcdir}/${_srcname}"
@ -126,14 +126,16 @@ _package() {
# add vmlinux # add vmlinux
install -D -m644 vmlinux "${pkgdir}/usr/src/linux-${_kernver}/vmlinux" install -D -m644 vmlinux "${pkgdir}/usr/src/linux-${_kernver}/vmlinux"
# install fallback mkinitcpio.conf file and preset file for kernel
install -D -m644 "${srcdir}/linux.preset" "${pkgdir}/etc/mkinitcpio.d/${pkgbase}.preset"
# set correct depmod command for install # set correct depmod command for install
cp -f "${startdir}/${install}" "${startdir}/${install}.pkg"
true && install=${install}.pkg
sed \ sed \
-e "s/KERNEL_NAME=.*/KERNEL_NAME=${_kernelname}/" \ -e "s/KERNEL_NAME=.*/KERNEL_NAME=${_kernelname}/" \
-e "s/KERNEL_VERSION=.*/KERNEL_VERSION=${_kernver}/" \ -e "s/KERNEL_VERSION=.*/KERNEL_VERSION=${_kernver}/" \
-i "${startdir}/linux.install" -i "${startdir}/${install}"
# install mkinitcpio preset file for kernel
install -D -m644 "${srcdir}/linux.preset" "${pkgdir}/etc/mkinitcpio.d/${pkgbase}.preset"
sed \ sed \
-e "1s|'linux.*'|'${pkgbase}'|" \ -e "1s|'linux.*'|'${pkgbase}'|" \
-e "s|ALL_kver=.*|ALL_kver=\"/boot/vmlinuz-${pkgbase}\"|" \ -e "s|ALL_kver=.*|ALL_kver=\"/boot/vmlinuz-${pkgbase}\"|" \

View File

@ -2,7 +2,7 @@
# arg 2: the old package version # arg 2: the old package version
KERNEL_NAME= KERNEL_NAME=
KERNEL_VERSION=3.9.4-1-ARCH KERNEL_VERSION=
# set a sane PATH to ensure that critical utils like depmod will be found # set a sane PATH to ensure that critical utils like depmod will be found
export PATH='/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin' export PATH='/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin'