summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--libre/lirc-parabola/PKGBUILD14
1 files changed, 10 insertions, 4 deletions
diff --git a/libre/lirc-parabola/PKGBUILD b/libre/lirc-parabola/PKGBUILD
index 5208acab7..d5f36b531 100644
--- a/libre/lirc-parabola/PKGBUILD
+++ b/libre/lirc-parabola/PKGBUILD
@@ -4,6 +4,10 @@
# Contributor: Luke Shumaker <lukeshu@sbcglobal.net>
# Contributor: Márcio Silva <coadde@parabola.nu>
+
+_basekernel=3.16
+_kernelname=
+
_pkgname=lirc-parabola${_kernelname}
pkgbase=$_pkgname
pkgname=("$_pkgname" lirc-utils-parabola)
@@ -11,8 +15,6 @@ _pkgver=0.9.1a
[[ $_pkgver =~ [a-z]$ ]] && pkgver="${_pkgver:0:-1}.${_pkgver: -1}" || pkgver="$_pkgver"
pkgrel=3.2
epoch=1
-_basekernel=3.16
-_kernelname=
_extramodules=extramodules-${_basekernel}${_kernelname}
arch=('i686' 'x86_64' 'mips64el')
url="http://www.lirc.org/"
@@ -87,8 +89,10 @@ _package_lirc-parabola() {
make DESTDIR="${pkgdir}" moduledir="/usr/lib/modules/${_extramodules}" install
gzip -9 "${pkgdir}/usr/lib/modules/${_extramodules}"/*.ko
- # set the kernel we've built for inside the install script
- sed -i "s/^_EXTRAMODULES=$/_EXTRAMODULES="${_extramodules}"/" "${startdir}/kmod.install"
+ # Set the correct extramodules directory for install
+ cp -f "${startdir}/${install}" "${startdir}/${install}.pkg"
+ true && install=${install}.pkg
+ sed -i "s/^_EXTRAMODULES=$/_EXTRAMODULES="${_extramodules}"/" "${startdir}/${install}"
}
eval "package_${_pkgname}() { _package_lirc-parabola; }"
@@ -119,3 +123,5 @@ package_lirc-utils-parabola() {
# remove built modules
rm -r "${pkgdir}/usr/lib/modules"
}
+
+# vim: ts=2 sw=2 et: