Commit be089e88 authored by Seblu's avatar Seblu
Browse files

up


git-svn-id: https://seblu.net/s/archpkg@255 02741741-5192-46b8-8916-7152b19231d9
parent 088905a1
Loading
Loading
Loading
Loading
+10 −8
Original line number Diff line number Diff line
@@ -7,7 +7,7 @@ kernelver=3.4
kernelsuf=-seblu
pkgname=linux
pkgver=6
pkgrel=1
pkgrel=2
arch=('x86_64')
license=('GPL2')
url='http://www.kernel.org'
@@ -94,11 +94,14 @@ package() {
  sed -ri "s/pkgname=.*/pkgname='$pkgname'/" "$startdir/install"

  # installing modules
  install -d "$pkgdir"/{lib/modules,lib/firmware,boot}
  make INSTALL_MOD_PATH="$pkgdir" modules_install
  # disable DEPMOD because it fail due to poor hack in scripts/depmod.sh
  make INSTALL_MOD_PATH="$pkgdir/usr" DEPMOD=/bin/true modules_install

  # do manual depmod call
  depmod -b "$pkgdir" -- "$compver"

  # install kernel and map
  cp arch/x86/boot/bzImage "$pkgdir/boot/kernel-$compver"
  install -D -m644 arch/x86/boot/bzImage "$pkgdir/boot/kernel-$compver"

  # install mkinitcpio preset file for kernel
  install -d "$pkgdir/etc/mkinitcpio.d/"
@@ -129,10 +132,10 @@ KERNEL_BUILD=$compver
EOF

  # remove build and source links
  rm -f "$pkgdir/lib/modules/$compver"/{source,build}
  rm -f "$pkgdir/usr/lib/modules/$compver"/{source,build}

  # remove the firmware (avoiding conflict with 2.6
  rm -rf "$pkgdir/lib/firmware"
  rm -rf "$pkgdir/usr/lib/firmware"

  # copy documentation
  install -d "$pkgdir/usr/src/linux-$compver"
@@ -150,8 +153,7 @@ EOF
}

copy_headers() {
  install -d "$pkgdir/lib/modules/$compver"
  ln -sf ../../../usr/src/linux-$compver "$pkgdir/lib/modules/$compver/build"
  ln -sf /usr/src/linux-$compver "$pkgdir/usr/lib/modules/$compver/build"
  cd "$srcdir/linux-$kernelbase"
  install -D -m644 Makefile "$pkgdir/usr/src/linux-$compver/Makefile"
  install -D -m644 kernel/Makefile "$pkgdir/usr/src/linux-$compver/kernel/Makefile"
+1 −1
Original line number Diff line number Diff line
@@ -30,7 +30,7 @@ pre_remove() {
  rm -vf /boot/initramfs-${KERNEL_BUILD}.img
  rm -vf /boot/initramfs-${KERNEL_BUILD}-fallback.img
  echo "==> Cleaning kernel modules"
  rm -rf /lib/modules/${KERNEL_BUILD}
  rm -rf /usr/lib/modules/${KERNEL_BUILD}
}

post_remove() {