Skip to content

Commit

Permalink
add: megabasterd-bin (#5061)
Browse files Browse the repository at this point in the history
  • Loading branch information
vigress8 authored Dec 22, 2023
1 parent 2f963cb commit 28bd2c9
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 0 deletions.
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")
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"
}

0 comments on commit 28bd2c9

Please sign in to comment.