blob: 42f3b83501d1db1f6e04c3b2b2fec14b63c5b0e8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
|
# 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://popcorn.cdnjd.com/"
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
net-libs/nodejs
x11-libs/gtk+:2"
S="${WORKDIR}"
src_install() {
exeinto /opt/${PN}
doexe Popcorn-Time libffmpegsumo.so nw.pak
dosym /usr/$(get_libdir)/libudev.so.1 /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}"/${PN}.png
}
pkg_postinst() {
fdo-mime_desktop_database_update
}
pkg_postrm() {
fdo-mime_desktop_database_update
}
|