Advertisement
pusheax

unreal-engine PKGBUILD

May 9th, 2016
281
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.88 KB | None | 0 0
  1. # Maintainer: Dylan Ferris <dylan@psilly.com>
  2.  
  3. # You must register at unrealengine.com and link your github account to access this private repo.
  4. # For more info, see: https://wiki.archlinux.org/index.php/Unreal_Engine_4
  5.  
  6. # The source is about 3.8 GiB, with an extra 3.2 GiB of dependencies downloaded in build(), and may take several hours to compile.
  7.  
  8. pkgname='unreal-engine'
  9. pkgver=4.11.2
  10. pkgrel=3
  11. pkgdesc='A 3D game engine by Epic Games which can be used non-commercially for free.'
  12. arch=('x86_64')
  13. url='https://www.unrealengine.com/'
  14. makedepends=('clang35' 'mono' 'dos2unix' 'cmake')
  15. depends=('icu53' 'xdg-user-dirs')
  16. license=('custom:UnrealEngine')
  17. source=(
  18. git+ssh://github.com/EpicGames/UnrealEngine.git#tag=$pkgver-release
  19. UE4Editor.desktop
  20. Setup.patch
  21. )
  22. md5sums=(
  23. SKIP
  24. 7a2db62e8d0e8e6f26424768c412d356
  25. 0aef7bb2dbb1aeb5c65d3f90ca89009d
  26. )
  27. options=(!strip staticlibs)
  28.  
  29. build() {
  30. cd $srcdir/UnrealEngine/Engine/Build/BatchFiles/Linux
  31.  
  32. patch < $startdir/Setup.patch
  33.  
  34. cd $srcdir/UnrealEngine
  35. ./Setup.sh
  36. ./GenerateProjectFiles.sh
  37.  
  38. make UE4Editor UE4Game UnrealPak CrashReportClient ShaderCompileWorker UnrealLightmass
  39. make -j1 ShaderCompileWorker
  40. }
  41.  
  42. package() {
  43. install -Dm644 UE4Editor.desktop "$pkgdir/usr/share/applications/UE4Editor.desktop"
  44.  
  45. cd $srcdir/UnrealEngine
  46.  
  47. install -Dm644 LICENSE.pdf "$pkgdir/usr/share/licenses/UnrealEngine/LICENSE.pdf"
  48.  
  49. install -d "$pkgdir/opt/$pkgname"
  50.  
  51. # copy the entire build dir, ~22 GiB
  52. # @todo only copy what is needed
  53. cp -r * "$pkgdir/opt/$pkgname/"
  54.  
  55. # make the whole thing world writable, otherwise there is a segmentation fault when starting the editor
  56. # @todo find out what specifically needs to writable
  57. chmod -R a+w "$pkgdir/opt/$pkgname/"
  58.  
  59. install -Dm644 Engine/Content/Editor/Slate/About/UE4Icon.png "$pkgdir/usr/share/pixmaps/UE4Editor.png"
  60. }
  61.  
  62. # vim:set ts=2 sw=2 et:
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement