summaryrefslogtreecommitdiff
path: root/net-misc/megasync/megasync-1.0.38.ebuild
diff options
context:
space:
mode:
authorStefan Cristian B. <steven.darklight@gmail.com>2015-06-18 18:31:03 +0300
committerStefan Cristian B. <steven.darklight@gmail.com>2015-06-18 18:31:03 +0300
commit71c20430bd06d80b663fb54d1df67598d804c219 (patch)
tree8ed9e8852b128c270f9197edf597532ac3fd8e11 /net-misc/megasync/megasync-1.0.38.ebuild
parent35875647a1f4db65a3a7a559479ef8e311acbac2 (diff)
parent975d01bc65f0f9190808c0d3cddf3131a790a8f6 (diff)
Merge pull request #52 from crismblog/master
Applications useful and beautiful themes
Diffstat (limited to 'net-misc/megasync/megasync-1.0.38.ebuild')
-rw-r--r--net-misc/megasync/megasync-1.0.38.ebuild51
1 files changed, 51 insertions, 0 deletions
diff --git a/net-misc/megasync/megasync-1.0.38.ebuild b/net-misc/megasync/megasync-1.0.38.ebuild
new file mode 100644
index 00000000..b07009e5
--- /dev/null
+++ b/net-misc/megasync/megasync-1.0.38.ebuild
@@ -0,0 +1,51 @@
+# 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"
+
+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
+}