summaryrefslogtreecommitdiff
path: root/media-tv/popcorntime-bin/popcorntime-bin-0.3.6.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 /media-tv/popcorntime-bin/popcorntime-bin-0.3.6.ebuild
parent35875647a1f4db65a3a7a559479ef8e311acbac2 (diff)
parent975d01bc65f0f9190808c0d3cddf3131a790a8f6 (diff)
Merge pull request #52 from crismblog/master
Applications useful and beautiful themes
Diffstat (limited to 'media-tv/popcorntime-bin/popcorntime-bin-0.3.6.ebuild')
-rw-r--r--media-tv/popcorntime-bin/popcorntime-bin-0.3.6.ebuild55
1 files changed, 55 insertions, 0 deletions
diff --git a/media-tv/popcorntime-bin/popcorntime-bin-0.3.6.ebuild b/media-tv/popcorntime-bin/popcorntime-bin-0.3.6.ebuild
new file mode 100644
index 00000000..314b58c9
--- /dev/null
+++ b/media-tv/popcorntime-bin/popcorntime-bin-0.3.6.ebuild
@@ -0,0 +1,55 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+EAPI=5
+
+inherit eutils fdo-mime multilib
+
+DESCRIPTION="Watch torrent movies instantly"
+HOMEPAGE="http://popcorntime.io"
+SRC_URI="
+x86? ( http://cdn.popcorntime.io/build/Popcorn-Time-${PV}-Linux32.tar.xz )
+amd64? ( http://cdn.popcorntime.io/build/Popcorn-Time-${PV}-Linux64.tar.xz )"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+RESTRICT="splitdebug strip"
+
+DEPEND=""
+RDEPEND="dev-libs/nss
+ gnome-base/gconf
+ media-fonts/corefonts
+ media-libs/alsa-lib
+ x11-libs/gtk+:2
+ net-libs/nodejs"
+
+S="${WORKDIR}"
+
+src_install() {
+ exeinto /opt/${PN}
+ doexe Popcorn-Time
+
+ insinto /opt/${PN}
+ doins libffmpegsumo.so nw.pak package.nw
+ fperms 755 /opt/${PN}/libffmpegsumo.so
+
+ dosym /usr/$(get_libdir)/libudev.so /opt/${PN}/libudev.so.0
+ make_wrapper ${PN} ./Popcorn-Time /opt/${PN} /opt/${PN} /opt/bin
+
+ insinto /usr/share/applications
+ doins "${FILESDIR}"/${PN}.desktop
+
+ insinto /usr/share/pixmaps
+ doins "${FILESDIR}"/popcorntime.png
+}
+
+pkg_postinst() {
+ fdo-mime_desktop_database_update
+}
+
+pkg_postrm() {
+ fdo-mime_desktop_database_update
+}