summaryrefslogtreecommitdiff
path: root/libre/linux-libre/PKGBUILD
diff options
context:
space:
mode:
authorAndré Fabian Silva Delgado <emulatorman@lavabit.com>2012-10-07 04:16:33 -0200
committerAndré Fabian Silva Delgado <emulatorman@lavabit.com>2012-10-07 04:16:33 -0200
commit1343f94089edce027e4a7ead1a0da5540ac768c3 (patch)
treec6080c9bbab5e0f257d601191537f3f70761a0bc /libre/linux-libre/PKGBUILD
parent889a3fb666cd54a10267651d60b8eb5f87b6986f (diff)
downloadabslibre-1343f94089edce027e4a7ead1a0da5540ac768c3.tar.gz
abslibre-1343f94089edce027e4a7ead1a0da5540ac768c3.tar.bz2
abslibre-1343f94089edce027e4a7ead1a0da5540ac768c3.zip
linux-libre-3.5.5-1.1: reverting changes due conflicts
Diffstat (limited to 'libre/linux-libre/PKGBUILD')
-rwxr-xr-xlibre/linux-libre/PKGBUILD19
1 files changed, 9 insertions, 10 deletions
diff --git a/libre/linux-libre/PKGBUILD b/libre/linux-libre/PKGBUILD
index a170f28b3..fb714f0d2 100755
--- a/libre/linux-libre/PKGBUILD
+++ b/libre/linux-libre/PKGBUILD
@@ -12,7 +12,7 @@ pkgbase=linux-libre # Build stock -LIBRE kernel
_basekernel=3.5
_sublevel=5
pkgver=${_basekernel}.${_sublevel}
-pkgrel=1
+pkgrel=1.1
_lxopkgver=${_basekernel}.5 # nearly always the same as pkgver
arch=('i686' 'x86_64' 'mips64el')
url="http://linux-libre.fsfla.org/"
@@ -178,8 +178,7 @@ _package() {
_basekernel=${_kernver%%-*}
_basekernel=${_basekernel%.*}
- mkdir -p "${pkgdir}"/{usr/{lib/modules,lib/firmware},boot}
- ln -s usr/lib "${pkgdir}"/lib
+ mkdir -p "${pkgdir}"/{lib/modules,lib/firmware,boot}
make LOCALVERSION= INSTALL_MOD_PATH="${pkgdir}" modules_install
if [ "$CARCH" == "mips64el" ]; then
@@ -214,22 +213,22 @@ _package() {
fi
# remove build and source links
- rm -f "${pkgdir}"/usr/lib/modules/${_kernver}/{source,build}
+ rm -f "${pkgdir}"/lib/modules/${_kernver}/{source,build}
# remove the firmware
-# rm -rf "${pkgdir}/lib/firmware"
+ rm -rf "${pkgdir}/lib/firmware"
# gzip -9 all modules to save 100MB of space
find "${pkgdir}" -name '*.ko' -exec gzip -9 {} \;
# make room for external modules
- ln -s "../extramodules-${_basekernel}${_localversionname:--LIBRE}" "${pkgdir}/usr/lib/modules/${_kernver}/extramodules"
+ ln -s "../extramodules-${_basekernel}${_localversionname:--LIBRE}" "${pkgdir}/lib/modules/${_kernver}/extramodules"
# add real version for building modules and running depmod from post_install/upgrade
- mkdir -p "${pkgdir}/usr/lib/modules/extramodules-${_basekernel}${_localversionname:--LIBRE}"
- echo "${_kernver}" > "${pkgdir}/usr/lib/modules/extramodules-${_basekernel}${_localversionname:--LIBRE}/version"
+ mkdir -p "${pkgdir}/lib/modules/extramodules-${_basekernel}${_localversionname:--LIBRE}"
+ echo "${_kernver}" > "${pkgdir}/lib/modules/extramodules-${_basekernel}${_localversionname:--LIBRE}/version"
# Now we call depmod...
depmod -b "$pkgdir" -F System.map "$_kernver"
- # remove the symlink (conflicts with glibc)
- rm ${pkgdir}/lib
+ # move module tree /lib -> /usr/lib
+ mv "$pkgdir/lib" "$pkgdir/usr"
}
_package-headers() {