Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add: megabasterd-bin #5061

Merged
merged 9 commits into from
Dec 22, 2023
Merged
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
39 changes: 39 additions & 0 deletions packages/megabasterd-bin/megabasterd-bin.pacscript
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name="megabasterd-bin"
gives="megabasterd"
_name="MegaBasterd"
vigress8 marked this conversation as resolved.
Show resolved Hide resolved
pkgver="8.21"
pkgdesc="Yet another unofficial (and ugly) cross-platform MEGA downloader/uploader/streaming suite"
homepage="https://github.com/tonikelope/${gives}"
depends=("java11-runtime")
Elsie19 marked this conversation as resolved.
Show resolved Hide resolved
url="${homepage}/releases/download/v${pkgver}/${_name}_${pkgver}.jar"
hash="3f7460b5ba20cf84ea034e9f2c49def9b07cf59680a3b36492875d851f9e0241"
maintainer="vigress8 <[email protected]>"
repology=("project: ${gives}")

package() {
sudo install -Dm644 "${_name}_${pkgver}.jar" "${pkgdir}/usr/share/java/${gives}/${gives}.jar"

cat <<-END > "${gives}"
#!/usr/bin/env bash
java -jar /usr/share/java/${gives}/${gives}.jar "$@"
END

cat <<-END > "${gives}.desktop"
[Desktop Entry]
Type=Application
Name=${_name}
Comment=Yet another unofficial (and ugly) cross-platform MEGA downloader/uploader/streaming suite.
Icon=${gives}
TryExec=${gives}
Exec=${gives}
Terminal=false
Categories=Application;Network;
StartupWMClass=com-tonikelope-${gives}-MainPanel
END

sudo install -Dm755 "${gives}" -t "${pkgdir}/usr/bin"
sudo install -Dm644 "${gives}.desktop" -t "${pkgdir}/usr/share/applications"

wget -qO "${gives}.png" "https://raw.githubusercontent.com/tonikelope/${gives}/v${pkgver}/src/main/resources/images/pica_roja_big.png"
sudo install -Dm644 "${gives}.png" -t "${pkgdir}/usr/share/pixmaps"
}
Loading