Advertisement
Guest User

Untitled

a guest
Aug 11th, 2017
161
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 1.01 KB | None | 0 0
  1. # Maintainer: PlusMinus
  2.  
  3. _libname=evdi
  4. pkgname=$_libname-pre-release
  5. pkgver=1.4.1
  6. pkgrel=8
  7. pkgdesc="A Linux® kernel module that enables management of multiple screens."
  8. arch=('i686' 'x86_64')
  9. url="https://github.com/DisplayLink/evdi"
  10. license=('GPL')
  11. groups=()
  12. depends=(dkms)
  13. makedepends=()
  14. optdepends=()
  15. provides=("$_libname=$pkgver")
  16. conflicts=($_libname)
  17. backup=()
  18. options=()
  19. install=$pkgname.install
  20. changelog=$pkgname.Changelog
  21. source=($_libname-devel.zip::https://github.com/DisplayLink/evdi/archive/devel.zip)
  22. md5sums=('c82e4339f957ccd74cecf40b1e615dd8')
  23. noextract=()
  24.  
  25. build() {
  26. # We only need to build the library in this step, dkms will build the module
  27. cd "$_libname-devel/library"
  28.  
  29. make
  30. }
  31.  
  32. package() {
  33. # Predfine some target folders
  34. SRCDIR="$pkgdir/usr/src/$_libname-$pkgver"      # This one is needed for dkms
  35. LIBNAME=lib$_libname
  36.  
  37. cd "$_libname-devel"
  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