makedeb
Minecraft launcher with the ability to manage multiple instances
Viewing /PKGBUILD
.
Click here to go back to the Git tree for polymc-qt6.
# Maintainer: Sony Stinks <sonystinks@protonmail.com>
# Contributor: Kaydax <contact+aur@kaydax.xyz>
# Contributor: Yellow <yellow@example.com>
# Contributor: Lenny McLennington <lennymclennington@protonmail.com>
# Contributor: 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=polymc-qt6
pkgver=6.1
pkgrel=0.1
pkgdesc="Minecraft launcher with the ability to manage multiple instances"
arch=('amd64')
url="https://github.com/PolyMC/PolyMC"
license=('GPL3')
depends=('libgl-dev' 'zlib1g' 'hicolor-icon-theme' 'libquazip5-1' 'qt6-base-dev' 'qt6-base-dev-tools' 'libqt6core5compat6' 'libqt6charts6-dev' 'libqt6svg6' 'qt6-image-formats-plugins' 'libqt6xml6' 'libqt6core6' 'libqt6network6' 'libqt6gui6')
makedepends=('scdoc' 'extra-cmake-modules' 'cmake' 'git' 'openjdk-17-jdk' 'zlib1g-dev' 'libgl1-mesa-dev' 'qtchooser' 'qmake6' 'qmake6-bin' 'gcc' 'g++')
optdepends=('libglfw3: to use system GLFW libraries'
'libopenal1: to use system OpenAL libraries'
'libopenal-data: to use system OpenAL API'
'visualvm: Profiling support'
'libxrandr2: for older minecraft versions'
)
source=("https://github.com/PolyMC/PolyMC/releases/download/$pkgver/PolyMC-$pkgver.tar.gz")
sha256sums=('16d62604f7e4aed0a9a31876b860e5054ca12e1c81fe47e74324eb1edec9d8d0')
build() {
cmake -B build -S PolyMC-$pkgver \
-DLauncher_BUILD_PLATFORM='debianlinux' \
-DLauncher_QT_VERSION_MAJOR='6' \
-DCMAKE_BUILD_TYPE='None' \
-DCMAKE_INSTALL_PREFIX='/usr' \
-Wno-dev
cmake --build build
}
package() {
DESTDIR="$pkgdir" cmake --install build
}