pusheax

Untitled

Mar 14th, 2018
334
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. # Maintainer: Christoph Haag <haagch@studi.informatik.uni-stuttgart.de>
  2. # Maintainer: Laurent Carlier <lordheavym@gmail.com>
  3.  
  4. pkgname=vulkan-intel-git
  5. pkgver=18.1.0_devel.100894.fcf267ba08
  6. pkgrel=1
  7. pkgdesc="Intel's Vulkan mesa driver"
  8. arch=(x86_64)
  9. options=(debug !strip)
  10. url="http://www.mesa3d.org"
  11. license=('custom')
  12. depends=('vulkan-icd-loader' 'libgcrypt' 'wayland' 'libxcb' 'libpthread-stubs')
  13. provides=(vulkan-intel)
  14. conflicts=(vulkan-intel vulkan-i965 vulkan-i965-git)
  15. makedepends=('libdrm' 'dri2proto' 'glproto' 'libxxf86vm' 'libxdamage' 'expat>=2.0.1' 'libxmu'
  16. 'talloc' 'wayland' 'pkgconfig' 'imake' 'xorg-server-devel' 'python2-mako' 'python' 'git')
  17. source=('anvil::git://anongit.freedesktop.org/mesa/mesa'
  18. LICENSE)
  19. sha256sums=('SKIP'
  20. '7fdc119cf53c8ca65396ea73f6d10af641ba41ea1dd2bd44a824726e01c8b3f2')
  21. pkgver() {
  22. cd anvil
  23. echo $(cat VERSION | tr "-" "_").$(git rev-list --count HEAD).$(git rev-parse --short HEAD)
  24. }
  25.  
  26. prepare() {
  27. cd "${srcdir}/anvil"
  28. }
  29.  
  30. build() {
  31. cd "${srcdir}/anvil"
  32.  
  33. ./autogen.sh --prefix=/usr \
  34. --sysconfdir=/etc \
  35. --with-sha1=libgcrypt \
  36. --with-dri-drivers=i965 \
  37. --with-egl-platforms=x11,drm,wayland \
  38. --with-gallium-drivers= \
  39. --with-vulkan-drivers=intel \
  40. # --with-vulkan-icddir="$srcdir/fakeinstall/usr/share/vulkan/icd.d"
  41.  
  42. make
  43.  
  44. # fake installation
  45. mkdir -p "$srcdir"/fakeinstall
  46. make DESTDIR="${srcdir}"/fakeinstall install
  47. }
  48.  
  49. package() {
  50. cd "${srcdir}/anvil"
  51.  
  52. install -m755 -d "${pkgdir}"/usr/share/vulkan
  53. mv -v "${srcdir}"/fakeinstall/usr/share/vulkan/icd.d "${pkgdir}"/usr/share/vulkan/
  54.  
  55. install -m755 -d "${pkgdir}"/usr/{include/vulkan,lib}
  56. mv -v "${srcdir}"/fakeinstall/usr/lib/libvulkan_intel.so "${pkgdir}"/usr/lib/
  57. mv -v "${srcdir}"/fakeinstall/usr/include/vulkan/vulkan_intel.h "${pkgdir}"/usr/include/vulkan
  58.  
  59. install -m755 -d "${pkgdir}"/usr/share/licenses/"${pkgname}"
  60. install -m644 "${srcdir}/LICENSE" "${pkgdir}"/usr/share/licenses/"${pkgname}"/
  61. }
RAW Paste Data