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
Show file tree
Hide file tree
Changes from all 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
1 change: 1 addition & 0 deletions packagelist
Original file line number Diff line number Diff line change
Expand Up @@ -245,6 +245,7 @@ makedeb-deb
mangohud
marktext-deb
mcontrolcenter-bin
megabasterd-bin
megasync-deb
meson-focal-deb
micro
Expand Down
38 changes: 38 additions & 0 deletions packages/megabasterd-bin/megabasterd-bin.pacscript
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name="megabasterd-bin"
gives="megabasterd"
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}/MegaBasterd_${pkgver}.jar"
hash="3f7460b5ba20cf84ea034e9f2c49def9b07cf59680a3b36492875d851f9e0241"
maintainer="vigress8 <[email protected]>"
repology=("project: ${gives}")

package() {
sudo install -Dm644 "MegaBasterd_${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=MegaBasterd
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