diff --git a/packagelist b/packagelist index 652c1df937..4fedbfc8c1 100644 --- a/packagelist +++ b/packagelist @@ -245,6 +245,7 @@ makedeb-deb mangohud marktext-deb mcontrolcenter-bin +megabasterd-bin megasync-deb meson-focal-deb micro diff --git a/packages/megabasterd-bin/megabasterd-bin.pacscript b/packages/megabasterd-bin/megabasterd-bin.pacscript new file mode 100644 index 0000000000..5fe9f07296 --- /dev/null +++ b/packages/megabasterd-bin/megabasterd-bin.pacscript @@ -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 " +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" +}