[arch-commits] Commit in lirc/trunk (PKGBUILD lirc.install)

Thomas Bächler thomas at archlinux.org
Tue Oct 25 18:43:18 UTC 2011


    Date: Tuesday, October 25, 2011 @ 14:43:18
  Author: thomas
Revision: 141188

upgpkg: lirc 1:0.9.0-8

Fix depmod on update

Modified:
  lirc/trunk/PKGBUILD
  lirc/trunk/lirc.install

--------------+
 PKGBUILD     |    4 ++--
 lirc.install |    4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2011-10-25 18:37:31 UTC (rev 141187)
+++ PKGBUILD	2011-10-25 18:43:18 UTC (rev 141188)
@@ -4,7 +4,7 @@
 pkgbase=lirc
 pkgname=('lirc' 'lirc-utils')
 pkgver=0.9.0
-pkgrel=7
+pkgrel=8
 epoch=1
 _extramodules=extramodules-3.1-ARCH
 _kernver="$(cat /lib/modules/${_extramodules}/version)"
@@ -69,7 +69,7 @@
   make DESTDIR="${pkgdir}" moduledir="/lib/modules/${_extramodules}" install
 
   # set the kernel we've built for inside the install script
-  sed -i -e "s/KERNEL_VERSION=.*/KERNEL_VERSION=${_kernver}/g" "${startdir}/lirc.install"
+  sed -i -e "s/EXTRAMODULES=.*/EXTRAMODULES=${_extramodules}/g" "${startdir}/lirc.install"
   # gzip -9 modules
   find "${pkgdir}" -name '*.ko' -exec gzip -9 {} \;
 }

Modified: lirc.install
===================================================================
--- lirc.install	2011-10-25 18:37:31 UTC (rev 141187)
+++ lirc.install	2011-10-25 18:43:18 UTC (rev 141188)
@@ -1,9 +1,9 @@
-KERNEL_VERSION=3.1.0-1-ARCH
+EXTRAMODULES=extramodules-3.1-ARCH
 
 post_install() {
   # updating module dependencies
   echo ">>> Updating module dependencies. Please wait ..."
-  depmod $KERNEL_VERSION > /dev/null 2>&1
+  depmod $(cat /lib/modules/$EXTRAMODULES/version) > /dev/null 2>&1
 }
 
 post_upgrade() {




More information about the arch-commits mailing list