Advertisement
Guest User

Untitled

a guest
Apr 23rd, 2023
43
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.43 KB | None | 0 0
  1. # Maintainer: ThaChillera ThaChillera@protonmail.com
  2.  
  3. # Shamelessly copied from:
  4. # dolphin-emu-git by Daniel Peukert <daniel@peukert.cc>
  5.  
  6. # Contributor: Maxime Gauduin <alucryd@archlinux.org>
  7. # Contributor: Lightning <sgsdxzy@gmail.com>
  8.  
  9. # latest version obtained from this API endpoint: https://dolphin-emu.org/update/latest/beta/
  10. _projectname="dolphin-emu"
  11. _mainpkgname="$_projectname-beta"
  12. _noguipkgname="$_projectname-beta-nogui"
  13. pkgbase="$_mainpkgname-git"
  14. pkgname=("$_mainpkgname-git" "$_noguipkgname-git")
  15. pkgver=5.0.r18498.g46b99671d9
  16. pkgrel=1
  17. pkgdesc='A Gamecube / Wii emulator - monthly beta release'
  18. arch=('x86_64')
  19. url='http://www.dolphin-emu.org/'
  20. license=('GPL2')
  21. depends=(
  22. 'alsa-lib' 'bluez-libs' 'enet' 'hidapi' 'libevdev' 'libgl' 'libpng'
  23. 'libpulse' 'libx11' 'libxi' 'libxrandr' 'lzo' 'mbedtls' 'pugixml' 'qt5-base'
  24. 'sfml' 'zlib'
  25. 'libavcodec.so' 'libavformat.so' 'libavutil.so' 'libcurl.so'
  26. 'libminiupnpc.so' 'libswscale.so' 'libudev.so' 'libusb-1.0.so'
  27. )
  28. makedepends=('cmake' 'git' 'ninja' 'python')
  29. optdepends=('pulseaudio: PulseAudio backend')
  30. source=("$_projectname::git+https://github.com/dolphin-emu/dolphin.git#commit=46b99671d9158e0ca840c1d8ef249db0f321ced7")
  31. sha256sums=('SKIP')
  32.  
  33. prepare() {
  34. # init submodules
  35. cd $_projectname
  36. git submodule update --init --recursive
  37.  
  38. if [[ -d build ]]; then
  39. rm -rf build
  40. fi
  41. mkdir build
  42. }
  43.  
  44. pkgver() {
  45. cd $_projectname
  46.  
  47. git describe --long --tags | sed -e 's/-\([^-]*-g[^-]*\)$/-r\1/' -e 's/-/./g'
  48. }
  49.  
  50. build() {
  51. cd $_projectname
  52. cmake -S '.' -B 'build/' -G Ninja \
  53. -DCMAKE_BUILD_TYPE=None \
  54. -DCMAKE_INSTALL_PREFIX='/usr' \
  55. -DDISTRIBUTOR='aur.archlinux.org' \
  56. -DUSE_SHARED_ENET=ON
  57. cmake --build 'build/'
  58. }
  59.  
  60. package_dolphin-emu-beta-git() {
  61. provides=("$_projectname")
  62. conflicts=("$_projectname")
  63.  
  64. cd $_projectname
  65. DESTDIR="$pkgdir" cmake --install 'build/'
  66. install -Dm644 Data/51-usb-device.rules -t "${pkgdir}"/usr/lib/udev/rules.d/
  67.  
  68. rm -rf "$pkgdir/usr/bin/dolphin-emu-nogui"
  69. rm -rf "$pkgdir/usr/include"
  70. rm -rf "$pkgdir/usr/lib/libdiscord-rpc.a"
  71. rm -rf "$pkgdir/usr/share/man/man6/$_noguipkgname.6"
  72. }
  73.  
  74. package_dolphin-emu-beta-nogui-git() {
  75. depends=("$pkgbase")
  76. provides=("$_projectname-cli")
  77. conflicts=("$_projectname-cli")
  78.  
  79. cd $_projectname
  80. install -dm 755 "${pkgdir}"/usr/bin
  81. install -m 755 build/Binaries/dolphin-emu-nogui "${pkgdir}"/usr/bin/dolphin-emu-cli
  82. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement