summaryrefslogtreecommitdiff
path: root/libre/bbswitch/PKGBUILD
diff options
context:
space:
mode:
authorOmar Vega Ramos <ovruni@gnu.org.pe>2018-01-01 15:42:21 -0500
committerOmar Vega Ramos <ovruni@gnu.org.pe>2018-01-01 15:42:21 -0500
commitdb981075ece1f63a698d667cabfbbcf7bbf5d234 (patch)
tree152e751a6179b8898651711ba6f911a2aec6ea81 /libre/bbswitch/PKGBUILD
parentecb943071c70930d377490723fbfe5b12ca37e8e (diff)
downloadabslibre-db981075ece1f63a698d667cabfbbcf7bbf5d234.tar.gz
abslibre-db981075ece1f63a698d667cabfbbcf7bbf5d234.tar.bz2
abslibre-db981075ece1f63a698d667cabfbbcf7bbf5d234.zip
rebuild module packages against linux-libre-4.14.8_gnu-1
Diffstat (limited to 'libre/bbswitch/PKGBUILD')
-rw-r--r--libre/bbswitch/PKGBUILD29
1 files changed, 8 insertions, 21 deletions
diff --git a/libre/bbswitch/PKGBUILD b/libre/bbswitch/PKGBUILD
index 1555321f6..809d97224 100644
--- a/libre/bbswitch/PKGBUILD
+++ b/libre/bbswitch/PKGBUILD
@@ -9,8 +9,8 @@
_kernelname=
if [[ ${_kernelname} == "" ]]; then
- _basekernel=4.13
- _archrel=81
+ _basekernel=4.14
+ _archrel=96
_parabolarel=1
elif [[ ${_kernelname} == -lts ]]; then
_basekernel=4.9
@@ -40,10 +40,8 @@ source=("${pkgbase}-${pkgver}.tar.gz::https://github.com/Bumblebee-Project/bbswi
sha256sums=('76cabd3f734fb4fe6ebfe3ec9814138d0d6f47d47238521ecbd6a986b60d1477')
build() {
- cd "${srcdir}/${pkgbase}-${pkgver}"
-
+ cd "${pkgbase}-${pkgver}"
_kernver="$(cat /usr/lib/modules/${_extramodules}/version)"
-
make KDIR=/lib/modules/${_kernver}/build
}
@@ -51,18 +49,10 @@ _package() {
depends=("linux-libre${_kernelname}>=${_basekernel}" "linux-libre${_kernelname}<${_toohigh}")
replaces=("${pkgbase}-libre${_kernelname}" "${pkgbase}-parabola${_kernelname}")
conflicts=("${pkgbase}-libre${_kernelname}" "${pkgbase}-parabola${_kernelname}")
- install='kmod.install'
-
- cd "${srcdir}/${pkgbase}-${pkgver}"
- # 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}"
-
- # Actually install
- install -Dm644 ${pkgbase}.ko "${pkgdir}"/usr/lib/modules/${_extramodules}/${pkgbase}.ko
- gzip "${pkgdir}/usr/lib/modules/${_extramodules}/${pkgbase}.ko"
+ cd "${pkgbase}-${pkgver}"
+ install -Dt "${pkgdir}/usr/lib/modules/${_extramodules}" -m644 bbswitch.ko
+ find "${pkgdir}" -name '*.ko' -exec gzip -n {} +
}
if [[ ${_kernelname} == "" ]]; then
@@ -71,11 +61,8 @@ if [[ ${_kernelname} == "" ]]; then
conflicts=('bbswitch')
provides=('bbswitch')
- cd "${srcdir}/${pkgbase}-${pkgver}"
-
- install -dm755 "${pkgdir}/usr/src/${pkgbase}-${pkgver}/"
-
- install -Dm644 Makefile bbswitch.c dkms/dkms.conf "${pkgdir}/usr/src/${pkgbase}-${pkgver}/"
+ cd "${pkgbase}-${pkgver}"
+ install -Dt "${pkgdir}/usr/src/${pkgbase}-${pkgver}" -m644 Makefile bbswitch.c dkms/dkms.conf
}
pkgname=("${pkgbase}${_kernelname}" "${pkgbase}${_kernelname}-dkms")