diff options
Diffstat (limited to 'libre/tp_smapi')
-rw-r--r-- | libre/tp_smapi/PKGBUILD | 27 |
1 files changed, 11 insertions, 16 deletions
diff --git a/libre/tp_smapi/PKGBUILD b/libre/tp_smapi/PKGBUILD index 7af2e4ac1..06d1ad33c 100644 --- a/libre/tp_smapi/PKGBUILD +++ b/libre/tp_smapi/PKGBUILD @@ -11,11 +11,11 @@ # Maintainer: Omar Vega Ramos <ovruni@gnu.org.pe> # Contributor: Luke Shumaker <lukeshu@sbcglobal.net> -_kernelname=-lts +_kernelname= if [[ ${_kernelname} == "" ]]; then - _basekernel=4.11 - _archrel=19 + _basekernel=4.12 + _archrel=28 _parabolarel=1 elif [[ ${_kernelname} == -lts ]]; then _basekernel=4.9 @@ -48,27 +48,22 @@ fi install='kmod.install' source=("${_pkgname}-${pkgver}.tar.gz::https://github.com/evgeni/${_pkgname}/archive/${__pkgname}/${pkgver}.tar.gz") -md5sums=('6a51d3aa459ad7a6ebfbb8c29527b3ee') +sha256sums=('cd28bf6ee21b2c27b88d947cb0bfcb19648c7daa5d350115403dbcad05849381') build() { - cd "${srcdir}/${_pkgname}-${__pkgname}-${pkgver}" + cd "${_pkgname}-${__pkgname}-${pkgver}" - _kernver="$(cat /usr/lib/modules/${_extramodules}/version)" + # https://bugs.archlinux.org/task/54975 (kernel has no _GLOBAL_OFFSET_TABLE_): + # Clear EXTRA_CFLAGS since it defaults to injecting CFLAGS and -fno-plt breaks the modules - make HDAPS=1 KVER="${_kernver}" KBASE="/usr/lib/modules/${_kernver}" + make HDAPS=1 KVER="$(</usr/lib/modules/${_extramodules}/version)" EXTRA_CFLAGS= } package() { - _kernver="$(cat /usr/lib/modules/${_extramodules}/version)" + cd "${_pkgname}-${__pkgname}-${pkgver}" - # Actually install - make -C "/usr/lib/modules/${_kernver}/build" \ - INSTALL_MOD_PATH="${pkgdir}/usr" \ - M="${srcdir}/${_pkgname}-${__pkgname}-${pkgver}" modules_install - - cd "${pkgdir}/usr/lib/modules" - mv "${_kernver}/extra" "${_extramodules}" - rmdir "${_kernver}" + # install kernel modules + find . -name "*.ko" -exec install -Dt "${pkgdir}/usr/lib/modules/${_extramodules}" {} + # compress kernel modules find "${pkgdir}" -name "*.ko" -exec gzip -9 {} + |