[arch-commits] Commit in nvidia/trunk (PKGBUILD)
Ionut Biru
ibiru at archlinux.org
Thu Mar 22 17:21:58 UTC 2012
Date: Thursday, March 22, 2012 @ 13:21:58
Author: ibiru
Revision: 154074
fix sed fix for linux 3.3
Modified:
nvidia/trunk/PKGBUILD
----------+
PKGBUILD | 9 +++++----
1 file changed, 5 insertions(+), 4 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2012-03-22 16:20:27 UTC (rev 154073)
+++ PKGBUILD 2012-03-22 17:21:58 UTC (rev 154074)
@@ -5,7 +5,7 @@
pkgver=295.20
_extramodules=extramodules-3.3-ARCH
_kernver="$(cat /lib/modules/${_extramodules}/version)"
-pkgrel=4
+pkgrel=5
pkgdesc="NVIDIA drivers for linux."
arch=('i686' 'x86_64')
url="http://www.nvidia.com/"
@@ -33,9 +33,10 @@
sh "${_pkg}.run" --extract-only
cd "${_pkg}/kernel"
# fix for 3.3 kernel
- sed 's/CFLAGS="$CFLAGS -I$SOURCES\/arch\/x86\/include"/CFLAGS="$CFLAGS \
- -I$SOURCES\/arch\/x86\/include \
- -I$SOURCES\/arch\/x86\/include\/generated"/' -i conftest.sh
+ sed -i \
+ -e '/CFLAGS="$CFLAGS/s:-I$SOURCES/arch/x86/include:& -I$OUTPUT/arch/x86/include/generated:' \
+ conftest.sh
+
make SYSSRC=/lib/modules/"${_kernver}/build" module
}
More information about the arch-commits
mailing list