From 4cb1f68731e74a95de897f3e5e2abe995f2bae01 Mon Sep 17 00:00:00 2001 From: azur Date: Sat, 20 Dec 2025 21:59:41 +0100 Subject: [PATCH] Add desktop file and git ckecksum and depencies --- PKGBUILD | 18 +++++++++++++----- pandora_launcher.desktop | 9 +++++++++ 2 files changed, 22 insertions(+), 5 deletions(-) create mode 100644 pandora_launcher.desktop diff --git a/PKGBUILD b/PKGBUILD index 992a2ce..d5c03c3 100644 --- a/PKGBUILD +++ b/PKGBUILD @@ -7,16 +7,18 @@ arch=('x86_64') url="https://github.com/Moulberry/PandoraLauncher" license=('MIT') source=("$pkgname::git+$url.git#tag=v$pkgver") -sha256sums=('SKIP') +sha256sums=('eb208e1d5f92e31d1b41f42adf0df136a38863474875e760f156a4296186cde4') -depends=() +depends=( + 'libxkbcommon-x11' + 'vulkan-tools' + 'wayland' +) makedepends=( 'cargo' 'mold' - 'cmake' - 'util-linux' 'xcb-util' - 'libxkbcommon-x11' + 'git' ) export RUSTUP_TOOLCHAIN=stable @@ -35,5 +37,11 @@ build() { package() { cd "$srcdir/$pkgname" + _iconSrc="$srcdir/$pkgname/assets/icons/pandora.svg" + + install -d "${pkgdir}/usr/"{bin,share/{pixmaps,applications}} + install -Dm755 -t "$pkgdir/usr/bin/" "target/release/$pkgname" + install $_iconSrc "${pkgdir}/usr/share/pixmaps/${pkgname}.png" + install "$pkgname.desktop" "${pkgdir}/usr/share/applications/${pkgname}.png" } diff --git a/pandora_launcher.desktop b/pandora_launcher.desktop new file mode 100644 index 0000000..4db4b7a --- /dev/null +++ b/pandora_launcher.desktop @@ -0,0 +1,9 @@ +[Desktop Entry] +Name=Pandora Launcher +Exec=/usr/bin/pandora_launcher +Terminal=false +Type=Application +Icon=pandora_launcher +StartupWMClass=Pandora +Comment=An Experimental launcher for Minecraft created by Moulberry +Categories=Games; \ No newline at end of file