-
-
Notifications
You must be signed in to change notification settings - Fork 141
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added `lunarclient-app` package Bugfixes! Final changes Fix download link so CI works Forgot space... Commit suggestions, also add license warning Tabs to Spaces! Fix typos No more extraction
- Loading branch information
1 parent
e852b38
commit 5937c48
Showing
2 changed files
with
63 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
_pkgname=lunarclient | ||
name="${_pkgname}-app" | ||
repology=("project: lunar-client") | ||
pkgver="3.1.3" | ||
arch=("amd64") | ||
pkgdesc="PvP modpack for all modern versions of Minecraft" | ||
homepage="https://lunarclient.com" | ||
makedepends=("libfuse2") | ||
replace=("lunarclient" "lunar-client") | ||
breaks=("lunarclient-deb" "lunarclient-bin") | ||
maintainer="Mythbusters123 <[email protected]>" | ||
#_appimage="Lunar%20Client-${pkgver}.AppImage" | ||
#url="https://launcherupdates.lunarclientcdn.com/${_appimage}" | ||
# TEMPORARY ONLY UNTIL DOWNLOADING IS FIXED | ||
_appimage="LunarClient-${pkgver}.AppImage" | ||
url="https://cdn.themyth.dev/${_appimage}" | ||
hash='f04f1364aa02f89c667f54e206326cc1f9bca8242ad2600a5cfbf748d91498b5' | ||
_iconurl="https://raw.githubusercontent.com/Mythbusters123/lunarclient-app/main/${_pkgname}.png" | ||
_iconhash='28d489d41431bdaa784342a227abdfbbb525bbe831f98d34747ec557b6e02f05' | ||
_desktopurl="https://raw.githubusercontent.com/Mythbusters123/lunarclient-app/main/${_pkgname}.desktop" | ||
_desktophash='74c099d70a70ae356547d75c49de409b2dbb8da221cfc9b9da4e4d86ca1f7870' | ||
|
||
prepare() { | ||
# Be extra careful! | ||
wget -O "${_pkgname}.png" -q "${_iconurl}" | ||
wget -O "${_pkgname}.desktop" -q "${_desktop}" | ||
|
||
if [[ "$(sha256sum "${_pkgname}.png" | grep -o "[a-z0-9]*" | head -n1)" != "${_iconhash}" ]]; then | ||
fancy_message error "Hashes do not match for icon. Aborting..." | ||
return 1 | ||
fi | ||
|
||
if [[ "$(sha256sum "${_pkgname}.desktop" | grep -o "[a-z0-9]*" | head -n1)" != "${_desktophash}" ]]; then | ||
fancy_message error "Hashes do not match for desktop file. Aborting..." | ||
return 1 | ||
fi | ||
} | ||
|
||
build() { | ||
sed -i "s/REPLACE_VERSION/${pkgver}/" "${_pkgname}.desktop" | ||
} | ||
|
||
package() { | ||
# AppImage | ||
sudo install -Dm755 \ | ||
"${_appimage}" \ | ||
"${pkgdir}/usr/bin/${_pkgname}" | ||
|
||
# Desktop file | ||
sudo install -Dm644 \ | ||
"squashfs-root/launcher.desktop" \ | ||
"${pkgdir}/usr/share/applications/${_pkgname}.desktop" | ||
|
||
# Icon image | ||
sudo install -Dm644 \ | ||
"${_pkgname}.png" \ | ||
"${pkgdir}/usr/share/pixmaps/${_pkgname}.png" | ||
} | ||
post_install() { | ||
fancy_message warn "By using Lunar Client you agree to the Terms of Service and the Privacy Policy" | ||
fancy_message warn "found at https://www.lunarclient.com/terms and https://www.lunarclient.com/privacy, respectively" | ||
} |