# Maintainer: S Stewart # Maintainer: Cranky Supertoon # Special thanks to RyanTheAllmighty for making hyper-appimage pkgname="gdlauncher-appimage" _pkgname="gdlauncher" pkgver="1.1.5" pkgrel=1 arch=('x86_64') pkgdesc="GDLauncher is simple, yet powerful Minecraft custom launcher with a strong focus on the user experience" url="https://gdevs.io" license=('GPL3') install="gdlauncher-appimage.install" makedepends=('gendesk') depends=('libnotify' 'libxss' 'libxtst' 'libindicator-gtk3' 'libappindicator-gtk3') conflict=('gdlauncher' 'gdlauncher-bin' 'gdlauncher-git') source_x86_64=( "GDLauncher-${pkgver}.AppImage::https://github.com/gorilla-devs/GDLauncher/releases/download/v${pkgver}/GDLauncher-linux-setup.AppImage" ) md5sums_x86_64=('SKIP') prepare() { # deprecation echo -e "\e[36m>>>\e[0m \e[38;5;160mgdlauncher-appimage is \e[1mdeprecated.\e[0m\e[0m Please consider moving to \e[1mgdlauncher-bin\e[0m to continue receiving updates." # make executable chmod +x "${srcdir}/GDLauncher-$pkgver.AppImage" # extract appimage (didn't know this was possible) "${srcdir}/GDLauncher-$pkgver.AppImage" --appimage-extract cd "${srcdir}" gendesk --pkgname "GDLauncher" --pkgdesc "${pkgdesc}" --icon ${pkgname} --exec "/usr/bin/${pkgname}" -n -f mv "GDLauncher.desktop" "${pkgname}.desktop" } package() { # install the main files. install -d -m755 "${pkgdir}/opt/${pkgname}" cp -Rr "${srcdir}/squashfs-root/"* "${pkgdir}/opt/${pkgname}" # desktop entry install -D -m644 "${srcdir}/${pkgname}.desktop" "${pkgdir}/usr/share/applications/${pkgname}.desktop" # install the icon install -d -m755 "${pkgdir}/usr/share/icons/hicolor" mv "${srcdir}/squashfs-root/gdlauncher.png" "${srcdir}/squashfs-root/gdlauncher-appimage.png" cp -Rr "${srcdir}/squashfs-root/${pkgname}.png" "${pkgdir}/usr/share/icons/" # fix file permissions - all files as 644 - directories as 755 find "${pkgdir}/"{opt,usr} -type d -exec chmod 755 {} \; find "${pkgdir}/"{opt,usr} -type f -exec chmod 644 {} \; # make sure the main binary has the right permissions chmod +x "${pkgdir}/opt/${pkgname}/gdlauncher" # link the binary install -d -m755 "${pkgdir}/usr/bin" ln -sr "${pkgdir}/opt/${pkgname}/${_pkgname}" "${pkgdir}/usr/bin/${pkgname}" }