Smith Dhumbumroong avatar Smith Dhumbumroong committed bda0dbf

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

Comments (0)

Files changed (1)

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'
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.