summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPalmer Dabbelt <palmer@dabbelt.com>2015-08-11 00:30:31 -0700
committerPalmer Dabbelt <palmer@dabbelt.com>2015-08-11 00:30:31 -0700
commit50aa9836438d25e3a08f617193f23ab173f38a14 (patch)
treec3b1bf118a5df0ff7803ac432c91d487bcf3faf2 /net-misc
parentRemove pychromecast (diff)
downloadpalmer-50aa9836438d25e3a08f617193f23ab173f38a14.tar.gz
palmer-50aa9836438d25e3a08f617193f23ab173f38a14.tar.bz2
palmer-50aa9836438d25e3a08f617193f23ab173f38a14.zip
Import a megasync ebuild
Diffstat (limited to 'net-misc')
-rw-r--r--net-misc/megasync/Manifest3
-rw-r--r--net-misc/megasync/megasync-2.1.1.ebuild53
2 files changed, 56 insertions, 0 deletions
diff --git a/net-misc/megasync/Manifest b/net-misc/megasync/Manifest
new file mode 100644
index 0000000..9bca7d8
--- /dev/null
+++ b/net-misc/megasync/Manifest
@@ -0,0 +1,3 @@
+DIST megasync_2.1.1_amd64.deb 1806186 SHA256 a16e87165040a3b12f7d4e114fe3d4b2e6dd1f10534529746ea6772aa0de94e1 SHA512 5f8c2464199c343e05d8c9a45d066150d282a205acf67d98c8c6bb52fa37e439856ddecc3fa725ee3a241289086c5fde84245556822e818f19d34be3b9441533 WHIRLPOOL 12e084d0e42855bd73a573ee359f1249f92e13f3cc2a9d40f7d0282784c445159f51f1eddf8b8317a0639e2f12b71fadf76743f343881eb921024140c73b185f
+DIST megasync_2.1.1_i386.deb 1826476 SHA256 78386f72fdb7e47df2cf5c9c3dce70f05e9b2e338a74a9d659a13ff2ac93d620 SHA512 8dc4e987ac81348959f8d7dfe428564aec1dfa0dc034b97bef85a8314533ef0c706cd688562fee187c15af50423cc7472e62faee57d382cce7f36bff428cb690 WHIRLPOOL e353715c6c4ee0f974ced3eb95406b7584869022c7fecb26a27dfffff39b33038007811ac544511dee28befc23364f1ea4b4dbd95a087652b64fbea12ae664d1
+EBUILD megasync-2.1.1.ebuild 1219 SHA256 7371a8c76555bcd23c19e4f7bb13f27a1ab7e8c7d51eabf6f350f5cdb71f4609 SHA512 c9ae2bc57a5dbcc57ee26ef1f3ed75ef596d8eebd20b41664f147647214aaa544f7c04a16f08eb2fb18071abd96cd894980f1e7e51ec61726a5d210f16709332 WHIRLPOOL 8bf120cc15146ba9ca0d9178df373f3d31aa8fb6a4e0b49f7fa561ff147544b58549793792ff7afad1a21a2a56b870b21e92dddc1d33ebe097bab5957f1b8dbf
diff --git a/net-misc/megasync/megasync-2.1.1.ebuild b/net-misc/megasync/megasync-2.1.1.ebuild
new file mode 100644
index 0000000..9167105
--- /dev/null
+++ b/net-misc/megasync/megasync-2.1.1.ebuild
@@ -0,0 +1,53 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+EAPI=5
+
+inherit eutils multilib unpacker
+
+DESCRIPTION="A Qt-based program for syncing your MEGA account in your PC. This is the official app."
+HOMEPAGE="http://mega.co.nz"
+SRC_URI="
+ x86? ( https://mega.co.nz/linux/MEGAsync/xUbuntu_14.04/i386/${PN}_${PV}_i386.deb )
+ amd64? ( https://mega.co.nz/linux/MEGAsync/xUbuntu_14.04/amd64/${PN}_${PV}_amd64.deb )
+ "
+
+LICENSE="MEGA"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+DEPEND="dev-qt/qtcore:4"
+RDEPEND="${DEPEND}
+ dev-libs/openssl
+ dev-libs/libgcrypt
+ media-libs/libpng
+ net-dns/c-ares
+ dev-libs/crypto++
+ app-arch/xz-utils
+ !app-arch/deb2targz
+ dev-db/sqlite:3
+ "
+
+S="${WORKDIR}"
+
+src_unpack(){
+ unpack ${A}
+ unpack ./data.tar.xz
+ rm -v control.tar.gz data.tar.xz debian-binary
+}
+
+pkg_setup(){
+ elog "This ebuild installs the binary for MEGAsync. If any problems,"
+ elog "please, contact the MEGA team."
+}
+
+src_install(){
+ insinto /
+ doins -r usr
+ fperms +x /usr/bin/megasync
+ LIBCRYPTO=`equery f crypto++ | grep libcrypto++.so.0.0.0 | tail -n 1`
+ LIBDIR="${LIBCRYPTO%/*}"
+ dosym ${LIBDIR}/libcrypto++.so.0.0.0 ${LIBDIR}/libcrypto++.so.9
+}