forked from betonme/e2openplugin-EnhancedMovieCenter
-
Notifications
You must be signed in to change notification settings - Fork 0
/
enigma2-plugin-extensions-enhancedmoviecenter.bb
68 lines (57 loc) · 1.82 KB
/
enigma2-plugin-extensions-enhancedmoviecenter.bb
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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
SUMMARY = "Filemanager MoviePlayer Extentions"
MAINTAINER = "Coolman, Betonme & Swiss-MAD"
SECTION = "extra"
PRIORITY = "optional"
RDEPENDS_${PN} = "python-json python-html python-requests python-mutagen"
require conf/license/license-gplv2.inc
inherit gitpkgv pythonnative gettext
SRCREV = "${AUTOREV}"
PV = "4.0.+git${SRCPV}"
PKGV = "4.0.+git${GITPKGV}"
SRC_URI="git://github.com/betonme/e2openplugin-EnhancedMovieCenter.git"
S = "${WORKDIR}/git"
PACKAGES =+ "${PN}-src"
PACKAGES =+ "${PN}-po"
FILES_${PN} = "/etc /usr/lib"
FILES_${PN}-src = "\
/usr/lib/enigma2/python/Components/Converter/*.py \
/usr/lib/enigma2/python/Components/Renderer/*.py \
/usr/lib/enigma2/python/Components/Sources/*.py \
/usr/lib/enigma2/python/Plugins/Extensions/EnhancedMovieCenter/*.py \
"
FILES_${PN}-po = "/usr/lib/enigma2/python/Plugins/Extensions/EnhancedMovieCenter/locale/*/*/*.po"
inherit autotools-brokensep
EXTRA_OECONF = "\
BUILD_SYS=${BUILD_SYS} \
HOST_SYS=${HOST_SYS} \
STAGING_INCDIR=${STAGING_INCDIR} \
STAGING_LIBDIR=${STAGING_LIBDIR} \
"
CONFFILES_${PN} = "${sysconfdir}/enigma2/emc-hide.cfg ${sysconfdir}/enigma2/emc-noscan.cfg ${sysconfdir}/enigma2/emc-permsort.cfg ${sysconfdir}/enigma2/emc-topdir.cfg"
do_populate_sysroot[noexec] = "1"
do_package_qa[noexec] = "1"
pkg_postinst_${PN}() {
#!/bin/sh
echo ""
echo ""
echo "***********************************"
echo "* Enhanced Movie Center *"
echo "* by *"
echo "* Coolman, Betonme & Swiss-MAD *"
echo "***********************************"
echo ""
echo ""
echo "Plugin successfully installed!"
echo ""
echo "You should restart enigma2 now..."
echo ""
echo ""
echo ""
exit 0
}
pkg_postrm_${PN}() {
#!/bin/sh
rm -rf /usr/lib/enigma2/python/Plugins/Extensions/EnhancedMovieCenter/
echo "Plugin removed! You should restart enigma2 now!"
exit 0
}