diff options
author | Vasiliy Stelmachenok | 2025-03-12 23:57:51 +0300 |
---|---|---|
committer | Vasiliy Stelmachenok | 2025-03-12 23:57:51 +0300 |
commit | e1e92ec3e8f68107f026e495477bc557f0cba179 (patch) | |
tree | 722d50b90b1ce2bcdd1f0562a6b43fe9a02e531d /PKGBUILD | |
download | aur-e1e92ec3e8f68107f026e495477bc557f0cba179.tar.gz |
Init package
Signed-off-by: Vasiliy Stelmachenok <ventureo@yandex.ru>
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 65 |
1 files changed, 65 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..d49de017bd79 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,65 @@ +# Maintainer: Vasiliy Stelmachenok <ventureo@yandex.ru> +pkgname=freesmlauncher +pkgver=1.1.1 +pkgrel=1 +pkgdesc="Minecraft launcher with offline accounts support" +arch=(x86_64) +url='https://freesmlauncher.windstone.space/' +license=('GPL-3.0-only AND LGPL-3.0-or-later AND LGPL-2.0-or-later AND Apache-2.0 AND MIT AND LicenseRef-Batch AND OFL-1.1') +depends=( + glibc + gcc-libs + java-runtime + libgl + qt6-base + qt6-5compat + qt6-svg + qt6-imageformats + qt6-networkauth + quazip-qt6 + zlib + hicolor-icon-theme + tomlplusplus + cmark +) +makedepends=(cmake extra-cmake-modules git jdk17-openjdk scdoc ghc-filesystem gamemode) +optdepends=( + 'glfw-pure: Native Wayland support' + 'openal: to use system OpenAL libraries' + 'visualvm: Profiling support' + 'xorg-xrandr: for older minecraft versions' + 'flite: minecraft voice narration' +) +source=("git+https://github.com/FreesmTeam/FreesmLauncher#tag=sequoia-$pkgver") +sha256sums=('09edb37c5316a183973fe21fb56595ac1f4cf0dd8f7e9be2af3c6ba87ca63c75') + +prepare() { + cd "FreesmLauncher" + git remote set-url origin https://github.com/FreesmTeam/FreesmLauncher + git submodule update --init --filter=tree:0 --recursive +} + +build() { + cd "FreesmLauncher" + + export PATH="/usr/lib/jvm/java-17-openjdk/bin/:$PATH" + + cmake -DCMAKE_BUILD_TYPE= \ + -DCMAKE_INSTALL_PREFIX="/usr" \ + -DLauncher_QT_VERSION_MAJOR="6" \ + -DLauncher_ENABLE_JAVA_DOWNLOADER=ON \ + -Bbuild -S. + cmake --build build +} + +check() { + cd "FreesmLauncher" + ctest . +} + +package() { + cd "FreesmLauncher/build" + DESTDIR="$pkgdir" cmake --install . +} + +# vim:set ts=2 sw=2 et: |