PKGBUILD 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. # Maintainer: Sefa Eyeoglu <contact@scrumplex.net>
  2. # Maintainer: txtsd <aur.archlinux@ihavea.quest>
  3. # Contributor: Elijah Gregg <lovetocode999 at tilde dot team>
  4. # Contributor: Lenny McLennington <lennymclennington@protonmail.com>
  5. # Contributor: Miko <mikoxyzzz@gmail.com>
  6. # Contributor: Cheru Berhanu <aur attt cheru doot dev>
  7. _pkgname=prismlauncher
  8. pkgname=${_pkgname}-qt5-git
  9. pkgver=6.0.r238.gdeed4957
  10. pkgrel=2
  11. pkgdesc="Minecraft launcher with ability to manage multiple instances."
  12. arch=('i686' 'x86_64' 'aarch64')
  13. url="https://prismlauncher.org"
  14. license=('GPL3')
  15. depends=('java-runtime' 'libgl' 'qt5-base' 'qt5-svg' 'qt5-imageformats' 'zlib' 'hicolor-icon-theme' 'quazip-qt5' 'cmark' 'tomlplusplus')
  16. provides=('prismlauncher' 'prismlauncher-qt5')
  17. conflicts=('prismlauncher' 'prismlauncher-qt5')
  18. makedepends=('cmake' 'extra-cmake-modules' 'git' 'java-environment' 'scdoc' 'ghc-filesystem' 'gamemode')
  19. optdepends=('glfw: to use system GLFW libraries'
  20. 'openal: to use system OpenAL libraries'
  21. 'visualvm: Profiling support'
  22. 'xorg-xrandr: for older minecraft versions'
  23. )
  24. source=("git+https://github.com/PrismLauncher/PrismLauncher.git"
  25. "git+https://github.com/PrismLauncher/libnbtplusplus.git")
  26. sha256sums=('SKIP'
  27. 'SKIP')
  28. pkgver() {
  29. cd "PrismLauncher"
  30. git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
  31. }
  32. prepare() {
  33. cd "PrismLauncher"
  34. git submodule init
  35. git config submodule.libraries/cmark.active false
  36. git config submodule.libraries/extra-cmake-modules.active false
  37. git config submodule.libraries/filesystem.active false
  38. git config submodule.libraries/libnbtplusplus.url "${srcdir}/libnbtplusplus"
  39. git config submodule.libraries/quazip.active false
  40. git config submodule.libraries/tomlplusplus.active false
  41. git config submodule.libraries/filesystem.active false
  42. git config submodule.libraries/zlib.active false
  43. git -c protocol.file.allow=always submodule update
  44. }
  45. build() {
  46. cmake -DCMAKE_BUILD_TYPE= \
  47. -DCMAKE_INSTALL_PREFIX="/usr" \
  48. -DLauncher_APP_BINARY_NAME="${_pkgname}" \
  49. -DLauncher_QT_VERSION_MAJOR=5 \
  50. -DBUILD_TESTING=OFF \
  51. -Bbuild -SPrismLauncher
  52. cmake --build build
  53. }
  54. package() {
  55. cd "build"
  56. DESTDIR="${pkgdir}" cmake --install .
  57. }