-
Notifications
You must be signed in to change notification settings - Fork 84
/
enigma2-plugin-extensions-iptvlistupdater.bb
78 lines (66 loc) · 2.32 KB
/
enigma2-plugin-extensions-iptvlistupdater.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
69
70
71
72
73
74
75
76
77
78
DESCRIPTION = "IPTV Bouquet Updater Plugin by Nobody28 & satinfo "
MAINTAINER = "Nobody28 & satinfo"
SECTION = "extra"
PRIORITY = "optional"
RDEPENDS = "gst-plugins-bad-rtmp librtmp"
require conf/license/license-gplv2.inc
inherit gitpkgv
SRCREV = "${AUTOREV}"
PV = "1.10.+git${SRCPV}"
PKGV = "1.10.+git${GITPKGV}"
PR = "r2"
SRC_URI="git://github.com/Nobody28/IPTV-List-Updater.git"
S = "${WORKDIR}/git"
PACKAGES =+ "${PN}-src"
PACKAGES =+ "${PN}-po"
FILES_${PN} = "/usr/lib"
FILES_${PN}-src = "/usr/lib/enigma2/python/Plugins/Extensions/IPTV-List-Updater/*.py"
FILES_${PN}-po = "/usr/lib/enigma2/python/Plugins/Extensions/IPTV-List-Updater/locale/*/*/*.po"
inherit autotools
EXTRA_OECONF = "\
--with-libsdl=no --with-boxtype=${MACHINE} --with-po \
BUILD_SYS=${BUILD_SYS} \
HOST_SYS=${HOST_SYS} \
STAGING_INCDIR=${STAGING_INCDIR} \
STAGING_LIBDIR=${STAGING_LIBDIR} \
"
pkg_postinst() {
#!/bin/sh
# Ein Shell Script welches nach Installation des Paketes ausgeführt wird
echo "********************************************************"
echo "* IPTV List Updater installed *"
echo "* *"
echo "* Restart the Engima2 GUI to activate the plugin *"
echo "********************************************************"
exit 0
}
pkg_postrm() {
#!/bin/sh
# Ein Shell Script welches nach Entfernen des Paketes ausgeführt wird
echo "Removing IPTV List Updater Plugin from the system ..."
rm -rf /usr/lib/enigma2/python/Plugins/Extensions/IPTV-List-Updater > /dev/null 2>&1
rm -rf /usr/script/IPTV-List-update.sh > /dev/null 2>&1
exit 0
}
pkg_preinst() {
#!/bin/sh
# Ein Shell Script welches vor Installation des Paketes ausgeführt wird
echo "Checking for an older version of IPTV List Updater in the system..."
if [ -d /usr/lib/enigma2/python/Plugins/Extensions/IPTV-List-Updater ]
then
rm -rf /usr/lib/enigma2/python/Plugins/Extensions/IPTV-List-Updater > /dev/null 2>&1
rm -rf /usr/script/IPTV-List-update.sh > /dev/null 2>&1
echo "An older version of IPTV List Updater was found and removed"
echo "Proceeding to installation..."
else
echo "IPTV List Updater was not found in the system"
echo "Proceeding to installation..."
fi
exit 0
}
pkg_prerm() {
#!/bin/sh
# Ein Shell Script welches vor Entfernen des Paketes ausgeführt wird
rm /usr/lib/enigma2/python/Plugins/Extensions/IPTV-List-Updater/*.pyo > /dev/null 2>&1
exit 0
}