Various instructions for setting up Linux OS on Clevo N950TP6
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

54 lines
2.1 KiB

  1. # Maintainer: Pekka Helenius <fincer89 [at] hotmail [dot] com>
  2. # Contributor: Marc ROZANC <marc@rozanc.fr>
  3. _pkgbase='clevo-xsm-wmi'
  4. _modname=$_pkgbase
  5. pkgname="${_pkgbase}-dkms"
  6. pkgver='1.1'
  7. _pkgtag='6bfe9fe44e04'
  8. pkgrel=6
  9. pkgdesc='A reverse engineering driver for the Clevo SM series backlight keyboard (DKMS version)'
  10. arch=('i686' 'x86_64')
  11. license=('GPL')
  12. url='https://bitbucket.org/tuxedocomputers/clevo-xsm-wmi'
  13. options=(!emptydirs)
  14. conflicts=("$_pkgbase" 'tuxedo-wmi' 'tuxedo-wmi-dkms')
  15. provides=("$_pkgbase")
  16. depends=('dkms' 'gcc' 'make' 'linux-headers')
  17. source=(
  18. "clevo-xsm-wmi-${pkgver}.src.tar.gz::https://bitbucket.org/tuxedocomputers/clevo-xsm-wmi/get/v${pkgver}.tar.gz"
  19. "dkms.conf"
  20. "Makefile"
  21. "linux_4_14.diff"
  22. "patch_n950tp6-support.patch"
  23. "patch_add-orange.patch"
  24. )
  25. sha256sums=('630ff6dbfa90c8a9285badf75b60579b2a9495e85862b62ef77a3654535e4b72'
  26. '0cdf0213692a71d69f54730d1856d9f1e7b3d363d9b2a66a5d6bb363e8d8212f'
  27. 'fb20847bde676a305fda41b865b46aff52ae9de60e1262d6e9725a71d72b806b'
  28. '8aac7728933f6dd8796853b389049829fb46a3042ff423ee087ca0f86a3196a0'
  29. '5cd43e09f262db1732422c874774869114362586febe00bb6341a5e8932059c9'
  30. '4e2833df06f88efae08043fee711c9bba80b769a7f51f860a729afaab0d0fa51')
  31. install='clevo-xsm-wmi-dkms.install'
  32. prepare() {
  33. cd "${srcdir}/tuxedocomputers-clevo-xsm-wmi-${_pkgtag}"
  34. patch -i "${srcdir}/linux_4_14.diff" -p1
  35. patch -Np1 -i ../patch_n950tp6-support.patch
  36. patch -Np1 -i ../patch_add-orange.patch
  37. }
  38. package() {
  39. cd "${srcdir}/tuxedocomputers-clevo-xsm-wmi-${_pkgtag}/module"
  40. # Copy sources (including Makefile)
  41. install -dm755 "${pkgdir}/usr/src/${_modname}-${pkgver}/"
  42. install -Dm644 "${srcdir}/Makefile" "${srcdir}/dkms.conf" "clevo-xsm-wmi.c" "${pkgdir}/usr/src/${_modname}-${pkgver}/"
  43. # Copy license
  44. install -Dm644 "/usr/share/licenses/common/GPL2/license.txt" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
  45. # Module loading
  46. install -Dm644 /dev/null "$pkgdir/usr/lib/modules-load.d/$pkgname.conf"
  47. echo "clevo-xsm-wmi" > "$pkgdir/usr/lib/modules-load.d/$pkgname.conf"
  48. }