Advertisement
Guest User

flycast-git-2.2.r37.g552e5b7d7-1

a guest
Jan 11th, 2024
139
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 1.66 KB | Source Code | 0 0
  1. # Maintainer: Manuel <mdomlop@gmail.com>
  2.  
  3. _pkgname=flycast
  4. pkgname=$_pkgname-git
  5. pkgver=2.2.r37.g552e5b7d7
  6. pkgrel=1
  7. pkgdesc='A multiplatform Sega Dreamcast, Naomi, Naomi 2 and Atomiswave emulator'
  8. arch=(x86_64 i686 armv7h aarch64)
  9. url='https://github.com/flyinghead/flycast'
  10. license=(GPL2)
  11. depends=(alsa-lib curl gcc-libs glibc hicolor-icon-theme libao libpulse libzip lua miniupnpc zlib)
  12. makedepends=(cmake git libgl ninja xxhash)
  13. provides=($_pkgname)
  14. conflicts=($_pkgname)
  15. source=($_pkgname::git+$url.git
  16.     breakpad::git+https://github.com/flyinghead/mingw-breakpad.git
  17.     glslang::git+https://github.com/KhronosGroup/glslang.git
  18.     libchdr::git+https://github.com/flyinghead/libchdr.git
  19.     luabridge::git+https://github.com/vinniefalco/LuaBridge.git
  20.     SDL::git+https://github.com/libsdl-org/SDL.git
  21.     Vulkan-Headers::git+https://github.com/KhronosGroup/Vulkan-Headers.git
  22.     VulkanMemoryAllocator::git+https://github.com/GPUOpen-LibrariesAndSDKs/VulkanMemoryAllocator.git
  23. )
  24. md5sums=('SKIP' 'SKIP' 'SKIP' 'SKIP' 'SKIP' 'SKIP' 'SKIP' 'SKIP')
  25.  
  26. pkgver() {
  27.     cd $_pkgname
  28.     git describe --long --tags | sed -E 's/^[Vv]//;s/([^-]*-g)/r\1/;s/-/./g'
  29. }
  30.  
  31. prepare() {
  32.     cd $_pkgname
  33.     git submodule init
  34.     for submod in breakpad glslang libchdr luabridge SDL Vulkan-Headers VulkanMemoryAllocator
  35.     do
  36.         git config "submodule.core/deps/$submod.url" "../$submod"
  37.         git -c protocol.file.allow=always submodule update -- "core/deps/$submod"
  38.     done
  39. }
  40.  
  41. build() {
  42.     cd $_pkgname
  43.     cmake -B build -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX='/usr' -G Ninja
  44.     cmake --build build --config Release
  45. }
  46.  
  47. package() {
  48.     cd $_pkgname
  49.     DESTDIR="$pkgdir" cmake --install build --config Release
  50. }
  51.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement