Advertisement
Guest User

evdi-git PKGBUILD for linux>=4.15.0

a guest
Feb 8th, 2018
787
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 1.21 KB | None | 0 0
  1. # Maintainer: ajs124
  2.  
  3. pkgname=evdi-git
  4. pkgver=1.5.0.r0.ge7a08d0
  5. pkgrel=1
  6. pkgdesc="A Linux® kernel module that enables management of multiple screens. Git version."
  7. arch=('i686' 'x86_64')
  8. url="https://github.com/DisplayLink/evdi"
  9. license=('GPL')
  10. depends=(dkms)
  11. makedepends=(git libdrm)
  12. install=$pkgname.install
  13. changelog=$pkgname.Changelog
  14. source=(git+https://github.com/DisplayLink/evdi/)
  15. md5sums=(SKIP)
  16. conflicts=(evdi)
  17. provides=(evdi=$pkgver)
  18.  
  19. pkgver() {
  20.     cd ${pkgname/-git/}
  21.     git describe --long --tags | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
  22. }
  23.  
  24. build() {
  25.     # We only need to build the library in this step, dmks will build the module
  26.     cd ${pkgname/-git/}/library
  27.     # hotfix mentioned at https://github.com/DisplayLink/evdi/issues/117
  28.     sed -i -e 's/#if KERNEL_VERSION(4, 16, 0) <= LINUX_VERSION_CODE/#if KERNEL_VERSION(4, 15, 0) <= LINUX_VERSION_CODE/' ../module/evdi_connector.c
  29.     make
  30. }
  31.  
  32. package() {
  33.     # Predfine some target folders
  34.     SRCDIR="$pkgdir/usr/src/${pkgname/-git/}-$pkgver"   # This one is needed for dkms
  35.     LIBNAME=lib${pkgname/-git/}
  36.  
  37.     cd ${pkgname/-git/}
  38.  
  39.     install -D -m 755 library/$LIBNAME.so $pkgdir/usr/lib/$LIBNAME.so
  40.  
  41.     install -d $SRCDIR
  42.     install -D -m 755 module/* $SRCDIR
  43. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement