Loading kernel-rwolf/PKGBUILD +16 −16 Original line number Diff line number Diff line # Maintainer: Sebastien Luttringer <seblu@seblu.net> kernelver=2.6.39-rc4 kernelver=2.6.39-rc5 kernelsuf=-rwolf pkgname=kernel-${kernelver}${kernelsuf} Loading @@ -14,17 +14,17 @@ url="http://www.kernel.org" shopt -s nullglob build() { echo "Kernel version: $kernelver" echo "Kernel suffix: $kernelsuf" msg2 "Kernel version: $kernelver" msg2 "Kernel suffix: $kernelsuf" # Preparing sources if [ ! -d "${srcdir}/linux-$kernelver" ]; then msg "Preparing sources" # get sources if needed if [ -e "${startdir}/linux-$kernelver.tar.bz2" ]; then echo "==> Source already downloaded" msg2 "Source already downloaded" else echo "==> Downloading source" msg2 "Downloading source" cd ${startdir} if echo "$kernelver" | grep -q rc; then src="http://www.kernel.org/pub/linux/kernel/v2.6/testing/linux-${kernelver}.tar.bz2" Loading @@ -35,16 +35,16 @@ build() { fi # unpacting sources echo "==> Untaring sources" msg2 "Untaring sources" cd ${srcdir} tar xf "${startdir}/linux-${kernelver}.tar.bz2" cd ${srcdir}/linux-$kernelver # patching sources if [ -d "${startdir}/patch.d" ]; then echo "==> Patching sources" msg2 "Patching sources" for f in "${startdir}/patch.d/"*.patch; do echo "===> Patch $f" msg2 "Patch $f" patch -N -p1 -i "$f" done fi Loading @@ -54,24 +54,24 @@ build() { # loading default config if [ ! -e ".config" -a -e "${startdir}/config" ]; then echo "==> Copying default config" msg2 "Copying default config" cp -f "${startdir}/config" ".config" # updating suffixe in config if [ "${kernelsuf}" ]; then echo "==> Tweaking config" msg2 "Tweaking config" sed -i "s|CONFIG_LOCALVERSION=.*|CONFIG_LOCALVERSION=\"${kernelsuf}\"|g" ./.config fi fi # Preapre compilation echo "==> Preparing compilation" msg "Preparing compilation" yes "" | make config &>/dev/null make prepare &>/dev/null cpucount=$(grep -c processor /proc/cpuinfo 2>/dev/null) jc=$((${cpucount:-1} + 1)) jc=$((${cpucount:-1})) # Compiling sources echo "==> Compiling (jobs=$jc)" msg "Compiling (jobs=$jc)" make -j $jc bzImage modules } Loading Loading @@ -105,11 +105,11 @@ PRESETS=('default' 'fallback') #default_config="/etc/mkinitcpio.conf" default_kver="${_compver}" default_image="/boot/kernel-${_compver}.img" default_image="/boot/initrd-${_compver}" #default_options="" fallback_kver="${_compver}" fallback_image="/boot/kernel-${_compver}-fallback.img" fallback_image="/boot/initrd-${_compver}-fallback" fallback_options="-S autodetect" EOF Loading kernel-rwolf/install +1 −1 Original line number Diff line number Diff line # arg 1: the new package version # arg 2: the old package version pkgname='kernel-2.6.39-rc4-rwolf' pkgname='kernel-2.6.39-rc5-rwolf' post_install () { source /usr/share/$pkgname/info Loading Loading
kernel-rwolf/PKGBUILD +16 −16 Original line number Diff line number Diff line # Maintainer: Sebastien Luttringer <seblu@seblu.net> kernelver=2.6.39-rc4 kernelver=2.6.39-rc5 kernelsuf=-rwolf pkgname=kernel-${kernelver}${kernelsuf} Loading @@ -14,17 +14,17 @@ url="http://www.kernel.org" shopt -s nullglob build() { echo "Kernel version: $kernelver" echo "Kernel suffix: $kernelsuf" msg2 "Kernel version: $kernelver" msg2 "Kernel suffix: $kernelsuf" # Preparing sources if [ ! -d "${srcdir}/linux-$kernelver" ]; then msg "Preparing sources" # get sources if needed if [ -e "${startdir}/linux-$kernelver.tar.bz2" ]; then echo "==> Source already downloaded" msg2 "Source already downloaded" else echo "==> Downloading source" msg2 "Downloading source" cd ${startdir} if echo "$kernelver" | grep -q rc; then src="http://www.kernel.org/pub/linux/kernel/v2.6/testing/linux-${kernelver}.tar.bz2" Loading @@ -35,16 +35,16 @@ build() { fi # unpacting sources echo "==> Untaring sources" msg2 "Untaring sources" cd ${srcdir} tar xf "${startdir}/linux-${kernelver}.tar.bz2" cd ${srcdir}/linux-$kernelver # patching sources if [ -d "${startdir}/patch.d" ]; then echo "==> Patching sources" msg2 "Patching sources" for f in "${startdir}/patch.d/"*.patch; do echo "===> Patch $f" msg2 "Patch $f" patch -N -p1 -i "$f" done fi Loading @@ -54,24 +54,24 @@ build() { # loading default config if [ ! -e ".config" -a -e "${startdir}/config" ]; then echo "==> Copying default config" msg2 "Copying default config" cp -f "${startdir}/config" ".config" # updating suffixe in config if [ "${kernelsuf}" ]; then echo "==> Tweaking config" msg2 "Tweaking config" sed -i "s|CONFIG_LOCALVERSION=.*|CONFIG_LOCALVERSION=\"${kernelsuf}\"|g" ./.config fi fi # Preapre compilation echo "==> Preparing compilation" msg "Preparing compilation" yes "" | make config &>/dev/null make prepare &>/dev/null cpucount=$(grep -c processor /proc/cpuinfo 2>/dev/null) jc=$((${cpucount:-1} + 1)) jc=$((${cpucount:-1})) # Compiling sources echo "==> Compiling (jobs=$jc)" msg "Compiling (jobs=$jc)" make -j $jc bzImage modules } Loading Loading @@ -105,11 +105,11 @@ PRESETS=('default' 'fallback') #default_config="/etc/mkinitcpio.conf" default_kver="${_compver}" default_image="/boot/kernel-${_compver}.img" default_image="/boot/initrd-${_compver}" #default_options="" fallback_kver="${_compver}" fallback_image="/boot/kernel-${_compver}-fallback.img" fallback_image="/boot/initrd-${_compver}-fallback" fallback_options="-S autodetect" EOF Loading
kernel-rwolf/install +1 −1 Original line number Diff line number Diff line # arg 1: the new package version # arg 2: the old package version pkgname='kernel-2.6.39-rc4-rwolf' pkgname='kernel-2.6.39-rc5-rwolf' post_install () { source /usr/share/$pkgname/info Loading