summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorGianluca Boiano2018-12-09 17:57:28 +0100
committerGianluca Boiano2018-12-09 17:57:28 +0100
commitbba5339656bf29aefaa39aec2126f2d49f7b569c (patch)
tree55eae744de8844535386fae5ac38b224f50d6408
downloadaur-bba5339656bf29aefaa39aec2126f2d49f7b569c.tar.gz
megabasterd-bin: 5.76
-rw-r--r--.SRCINFO17
-rw-r--r--PKGBUILD27
-rw-r--r--megabasterd.desktop9
-rw-r--r--megabasterd.sh2
4 files changed, 55 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..db2dbefb55f
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,17 @@
+pkgbase = megabasterd-bin
+ pkgdesc = Yet another (unofficial) cross-platform MEGA downloader/uploader/streaming suite
+ pkgver = 5.76
+ pkgrel = 1
+ url = https://github.com/tonikelope/megabasterd
+ arch = any
+ license = GPL3
+ depends = java-runtime
+ source = https://github.com/tonikelope/megabasterd/releases/download/v5.76/MegaBasterd_5.76.jar
+ source = megabasterd.sh
+ source = megabasterd.desktop
+ md5sums = 5e9d7d9adc83b698652a34726f46371b
+ md5sums = f4112d02ba321fbb769be50679d35357
+ md5sums = b746134d9f4c90ae2458177c85041df8
+
+pkgname = megabasterd-bin
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..0045722ba19
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,27 @@
+# Maintainer: robertfoster
+
+pkgname=megabasterd-bin
+pkgver=5.76
+pkgrel=1
+pkgdesc="Yet another (unofficial) cross-platform MEGA downloader/uploader/streaming suite"
+arch=('any')
+url="https://github.com/tonikelope/megabasterd"
+license=('GPL3')
+depends=('java-runtime')
+source=("https://github.com/tonikelope/megabasterd/releases/download/v$pkgver/MegaBasterd_$pkgver.jar"
+ "${pkgname%%-bin}.sh"
+ "${pkgname%%-bin}.desktop"
+)
+
+package() {
+ cd "$srcdir"
+ mkdir -p "$pkgdir/usr/share/java/${pkgname%%-bin}"
+ cp "MegaBasterd_$pkgver.jar" "$pkgdir/usr/share/java/${pkgname%%-bin}/${pkgname%%-bin}.jar"
+ install -Dm755 "${pkgname%%-bin}.sh" "$pkgdir/usr/bin/${pkgname%%-bin}"
+ install -Dm644 "images/mbasterd_med.png" "$pkgdir/usr/share/pixmaps/${pkgname%%-bin}.png"
+ install -Dm644 "${pkgname%%-bin}.desktop" "$pkgdir/usr/share/applications/${pkgname%%-bin}.desktop"
+}
+
+md5sums=('5e9d7d9adc83b698652a34726f46371b'
+ 'f4112d02ba321fbb769be50679d35357'
+'b746134d9f4c90ae2458177c85041df8')
diff --git a/megabasterd.desktop b/megabasterd.desktop
new file mode 100644
index 00000000000..c65cc3d3b82
--- /dev/null
+++ b/megabasterd.desktop
@@ -0,0 +1,9 @@
+[Desktop Entry]
+Type=Application
+Name=MegaBasterd
+Icon=megabasterd
+TryExec=megabasterd
+Exec=megabasterd
+Terminal=false
+Categories=Application;Network;
+StartupWMClass=jd-Main
diff --git a/megabasterd.sh b/megabasterd.sh
new file mode 100644
index 00000000000..e1c66887018
--- /dev/null
+++ b/megabasterd.sh
@@ -0,0 +1,2 @@
+#!/bin/bash
+java -jar /usr/share/java/megabasterd/megabasterd.jar "$@"