diff options
author | Sefa Eyeoglu | 2022-10-18 08:41:18 +0200 |
---|---|---|
committer | Sefa Eyeoglu | 2022-10-18 08:41:55 +0200 |
commit | 274adfddf2babaa6718f51ae1d0e772325ef9109 (patch) | |
tree | 3e7ab0786e5c96572d679303dcff28bcb7aa8e1f | |
download | aur-274adfddf2babaa6718f51ae1d0e772325ef9109.tar.gz |
initial commit
Signed-off-by: Sefa Eyeoglu <contact@scrumplex.net>
-rw-r--r-- | .SRCINFO | 32 | ||||
-rw-r--r-- | PKGBUILD | 51 |
2 files changed, 83 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..f9975e7e2745 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,32 @@ +pkgbase = prismlauncher + pkgdesc = Minecraft launcher with ability to manage multiple instances. + pkgver = 1.4.2 + pkgrel = 1 + url = https://github.com/PlaceholderMC/PlaceholderMC + arch = i686 + arch = x86_64 + license = GPL3 + makedepends = cmake + makedepends = extra-cmake-modules + makedepends = git + makedepends = java-environment + makedepends = scdoc + depends = java-runtime + depends = libgl + depends = qt6-base + depends = qt6-5compat + depends = qt6-svg + depends = qt6-imageformats + depends = zlib + depends = hicolor-icon-theme + depends = quazip-qt6 + optdepends = glfw: to use system GLFW libraries + optdepends = openal: to use system OpenAL libraries + optdepends = visualvm: Profiling support + optdepends = xorg-xrandr: for older minecraft versions + source = https://github.com/PlaceholderMC/PlaceholderMC/releases/download/1.4.2/PlaceholderMC-1.4.2.tar.gz + source = fix-qt6-4.patch::https://github.com/PlaceholderMC/PlaceholderMC/commit/7ccafdc99321e82ee0f504a573a5c978480374a2.patch + sha256sums = a66f25e0389815d2419a5b3aa1b85a390f14bbf3997c55c7da1ce4507b5aa511 + sha256sums = 4215ec878ec7a5a63cc5710ef09a66f271d332542f4c6f5bb5f270a924dadcc7 + +pkgname = prismlauncher diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..bb0510c75e19 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,51 @@ +# Maintainer: Yellow <yellow@example.com> +# Maintainer: Lenny McLennington <lennymclennington@protonmail.com> +# Maintainer: Sefa Eyeoglu <contact@scrumplex.net> +# Contributor: Elijah Gregg <lovetocode999@tilde.team> +# Contributor: Miko <mikoxyzzz@gmail.com> +# Contributor: Cheru Berhanu <aur attt cheru doot dev> +# Contributor: dada513 <dada513@protonmail.com> + +pkgname=prismlauncher +pkgver=1.4.2 +pkgrel=1 +pkgdesc="Minecraft launcher with ability to manage multiple instances." +arch=('i686' 'x86_64') +url="https://github.com/PlaceholderMC/PlaceholderMC" +license=('GPL3') +depends=('java-runtime' 'libgl' 'qt6-base' 'qt6-5compat' 'qt6-svg' 'qt6-imageformats' 'zlib' 'hicolor-icon-theme' 'quazip-qt6') +makedepends=('cmake' 'extra-cmake-modules' 'git' 'java-environment' 'scdoc') +optdepends=('glfw: to use system GLFW libraries' + 'openal: to use system OpenAL libraries' + 'visualvm: Profiling support' + 'xorg-xrandr: for older minecraft versions') +source=("https://github.com/PlaceholderMC/PlaceholderMC/releases/download/$pkgver/PlaceholderMC-$pkgver.tar.gz" + "fix-qt6-4.patch::https://github.com/PlaceholderMC/PlaceholderMC/commit/7ccafdc99321e82ee0f504a573a5c978480374a2.patch") +sha256sums=('a66f25e0389815d2419a5b3aa1b85a390f14bbf3997c55c7da1ce4507b5aa511' + '4215ec878ec7a5a63cc5710ef09a66f271d332542f4c6f5bb5f270a924dadcc7') + +prepare() { + cd "PlaceholderMC-$pkgver" + + patch -Np1 -i "../fix-qt6-4.patch" +} + +build() { + + cmake -DCMAKE_BUILD_TYPE= \ + -DCMAKE_INSTALL_PREFIX="/usr" \ + -DLauncher_BUILD_PLATFORM="archlinux" \ + -DLauncher_QT_VERSION_MAJOR="6" \ + -Bbuild -SPlaceholderMC-$pkgver + cmake --build build +} + +check() { + cd "build" + ctest . +} + +package() { + cd "build" + DESTDIR="$pkgdir" cmake --install . +} |