diff options
-rw-r--r-- | pcr/bbswitch-lts/PKGBUILD | 45 | ||||
-rw-r--r-- | pcr/bbswitch-lts/kmod.install | 14 |
2 files changed, 17 insertions, 42 deletions
diff --git a/pcr/bbswitch-lts/PKGBUILD b/pcr/bbswitch-lts/PKGBUILD index 584e4088b..8ea3f0f4f 100644 --- a/pcr/bbswitch-lts/PKGBUILD +++ b/pcr/bbswitch-lts/PKGBUILD @@ -1,22 +1,24 @@ -# Maintainer (Arch): Sven-Hendrik Haase <sh@lutzhaase.com> -# Contributor (Arch): M0Rf30 -# Contributor (Arch): Samsagax <samsagax@gmail.com> +# Maintainer (AUR): e5ten <e5ten.arch@gmail.com> +# Contributor (AUR): Sven-Hendrik Haase <sh@lutzhaase.com> +# Contributor (AUR): M0Rf30 +# Contributor (AUR): Samsagax <samsagax@gmail.com> # Contributor (Hyperbola): André Silva <emulatorman@hyperbola.info> # Contributor (Hyperbola): Márcio Silva <coadde@hyperbola.info> # Maintainer: Omar Vega Ramos <ovruni@gnu.org.pe> -_basekernel=4.9 -_archrel=38 -_parabolarel=2 +_basekernel=4.19 +_pkgname=bbswitch pkgname=bbswitch-lts -_basename=bbswitch pkgver=0.8 -pkgrel=${_archrel}.parabola${_parabolarel}.basekernel${_basekernel} _extramodules=extramodules-${_basekernel}-lts -pkgdesc="Kernel module allowing to switch dedicated graphics card on Optimus laptops (built for the linux-libre-lts kernel package)" -arch=('i686' 'x86_64') -url="http://github.com/Bumblebee-Project/${_basename}" +pkgrel=45 +pkgrel+=.parabola1.basekernel${_basekernel} +pkgdesc="Kernel module allowing to switch dedicated graphics card on Optimus laptops" +pkgdesc+=" (built for the linux-libre-lts kernel package)" +arch=('x86_64') +arch+=('i686') +url="http://github.com/Bumblebee-Project/bbswitch" license=('GPL') # Generic (you shouldn't have to modify any of these variables) @@ -25,31 +27,18 @@ depends=("linux-libre-lts>=${_basekernel}" "linux-libre-lts<${_toohigh}") makedepends=("linux-libre-lts-headers>=${_basekernel}" "linux-libre-lts-headers<${_toohigh}" "linux-libre-lts>=${_basekernel}" "linux-libre-lts<${_toohigh}") makedepends+=('libelf') -replaces=("${_basename}-libre-lts" "${_basename}-parabola-lts") -conflicts=("${_basename}-libre-lts" "${_basename}-parabola-lts") provides=("${_basename}") - -install='kmod.install' source=("${_basename}-${pkgver}.tar.gz::https://github.com/Bumblebee-Project/bbswitch/archive/v${pkgver}.tar.gz") sha256sums=('76cabd3f734fb4fe6ebfe3ec9814138d0d6f47d47238521ecbd6a986b60d1477') build() { - cd "${srcdir}/${_basename}-${pkgver}" - + cd ${_pkgname}-${pkgver} _kernver="$(cat /usr/lib/modules/${_extramodules}/version)" - make KDIR=/lib/modules/${_kernver}/build } package() { - cd "${srcdir}/${_basename}-${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 ${_basename}.ko "${pkgdir}"/usr/lib/modules/${_extramodules}/${_basename}.ko - gzip "${pkgdir}/usr/lib/modules/${_extramodules}/${_basename}.ko" + cd ${_pkgname}-${pkgver} + install -Dt "${pkgdir}/usr/lib/modules/${_extramodules}" -m644 *.ko + find "${pkgdir}" -name '*.ko' -exec xz {} + } diff --git a/pcr/bbswitch-lts/kmod.install b/pcr/bbswitch-lts/kmod.install deleted file mode 100644 index 40caa464f..000000000 --- a/pcr/bbswitch-lts/kmod.install +++ /dev/null @@ -1,14 +0,0 @@ -_EXTRAMODULES= - -post_install() { - echo ">>> Updating module dependencies. Please wait ..." - depmod "$(cat /usr/lib/modules/$_EXTRAMODULES/version)" >/dev/null 2>&1 -} - -post_upgrade() { - post_install -} - -post_remove() { - post_install -} |