Commits

Smith Dhumbumroong committed bda0dbf

Add a hack to append ".0" to the package version number if $pkgver
is the same as $_kernver.

  • Participants
  • Parent commits 5a380a6

Comments (0)

Files changed (1)

File kernel-eeepc-901/PKGBUILD

 
   # remove the junk symlinks
   cd $srcdir/linux-$_kernver
-  rm $pkgdir/lib/modules/${pkgver}-eeepc-901/{build,source}
+  if [ "$_kernver" != "$pkgver" ]; then
+    rm $pkgdir/lib/modules/${pkgver}-eeepc-901/{build,source}
+  else
+    rm $pkgdir/lib/modules/${pkgver}.0-eeepc-901/{build,source}
+  fi
   # install the kernel
   cp arch/x86/boot/bzImage $pkgdir/boot/vmlinuz-eeepc-901
   # install a helper file for all install scripts
   mkdir -p $pkgdir/usr/share/kernel-eeepc-901/
-  echo "KERNEL_VERSION='${pkgver}-eeepc-901'" > $pkgdir/usr/share/kernel-eeepc-901/currver
+  if [ "$_kernver" != "$pkgver" ]; then
+    echo "KERNEL_VERSION='${pkgver}-eeepc-901'" > \
+    $pkgdir/usr/share/kernel-eeepc-901/currver
+  else
+    echo "KERNEL_VERSION='${pkgver}.0-eeepc-901'" > \
+    $pkgdir/usr/share/kernel-eeepc-901/currver
+  fi
 
   # udev rules for SSD drives
   mkdir -p $pkgdir/lib/udev/rules.d/
   install -m644 $srcdir/CREDITS $pkgdir/usr/share/kernel-eeepc-901/CREDITS
 }
 
-
 md5sums=('8d43453f8159b2332ad410b19d86a931'
          '160eb64e46159ac2d8896c349e6acd84'
          '42159e0ed02e4a42ea0f5c365f89dc5d'