forked from oe-alliance/oe-alliance-core
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
enigma2-plugin-extensions-chocholousek-picons - created bb recipe and…
… added to openatv feeds thx @s3n0
- Loading branch information
Showing
2 changed files
with
67 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
66 changes: 66 additions & 0 deletions
66
meta-oe/recipes-oe-alliance/enigma2-plugins/enigma2-plugin-extensions-chocholousek-picons.bb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,66 @@ | ||
SUMMARY = "Plugin for updating Chocholousek's picons in Enigma2" | ||
DESCRIPTION = "Enigma2 plugin for downloading and updating picons (almost all EU satellites)" | ||
HOMEPAGE = "https://github.com/s3n0/e2plugins/ChocholousekPicons" | ||
SECTION = "multimedia" | ||
LICENSE = "GPLv2" | ||
|
||
require conf/license/license-gplv2.inc | ||
|
||
RDEPENDS_${PN} = "p7zip" | ||
|
||
inherit gitpkgv gettext | ||
|
||
SRCREV = "${AUTOREV}" | ||
PV = "4.0.210214+gitr${SRCPV}" | ||
PKGV = "4.0.210214+gitr${SRCPV}" | ||
PR = "r1" | ||
|
||
SRC_URI = "git://github.com/s3n0/e2plugins" | ||
|
||
S = "${WORKDIR}/git/ChocholousekPicons/src" | ||
|
||
do_compile() { | ||
# generate translation .mo files | ||
find ${S}/locale -name \*.po -execdir sh -c 'msgfmt "$0" -o `basename $0 .po`.mo' '{}' \; | ||
} | ||
|
||
PACKAGES =+ "${PN}-po" | ||
FILES_${PN}-po = "${libdir}/enigma2/python/Plugins/Extensions/ChocholousekPicons/locale/*/*/*.po" | ||
FILES_${PN} = "${libdir}/enigma2/python/Plugins/Extensions/ChocholousekPicons" | ||
D_FILES_PN = "${D}${FILES_${PN}}" | ||
|
||
do_install() { | ||
install -d ${D_FILES_PN} | ||
install -d ${D_FILES_PN}/images | ||
install -d ${D_FILES_PN}/locale | ||
|
||
install -m 644 ${S}/*.py *.log *.txt ${D_FILES_PN} | ||
install -m 644 ${S}/images/*.* ${D_FILES_PN}/images | ||
cp -rf ${S}/locale ${D_FILES_PN} | ||
} | ||
|
||
pkg_postinst_${PN}() { | ||
#!/bin/sh | ||
echo "*********************************************************" | ||
echo " Chocholousek Picons - plugin ver.4.0.210130 " | ||
echo " Enigma2 plugin/extensions " | ||
echo " by s3n0 , 2018-2021 " | ||
echo "*********************************************************" | ||
echo " Successfully INSTALLED. You should restart Enigma2 now. " | ||
echo "*********************************************************" | ||
exit 0 | ||
} | ||
|
||
pkg_postrm_${PN}() { | ||
#!/bin/sh | ||
[ "$1" != "upgrade" ] || exit 0 > /dev/null 2>&1 # prevent the OE2.5+ based Enigma2 for deleting files when the package is "upgrading" | ||
rm -rf /usr/lib/enigma2/python/Plugins/Extensions/ChocholousekPicons > /dev/null 2>&1 | ||
echo "*********************************************************" | ||
echo " Chocholousek Picons - plugin ver.4.0.210130 " | ||
echo " Enigma2 plugin/extensions " | ||
echo " by s3n0 , 2018-2021 " | ||
echo "*********************************************************" | ||
echo " Successfully REMOVED. You should restart Enigma2 now. " | ||
echo "*********************************************************" | ||
exit 0 | ||
} |
28b8f38
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi.
I'm not familiar with this particular recipe.
Why is there a fixed version (number) of the plugin? Wouldn't it be better to extract the plugin version directly from the "version.txt" file from my github? The same way I do - in the case of my IPK compilation script or also according to the installation script (which is also published on my github, here: https://github.com/s3n0/e2plugins/blob/master/ChocholousekPicons/online-setup):
VER="$(wget -qO- --proxy off --no-check-certificate https://github.com/s3n0/e2plugins/raw/master/ChocholousekPicons/src/version.txt)"
28b8f38
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
its not so easy here, pkg version must be known before build is started. autorev will fetch always latest commit... versioning is possible if consistent git tags exists upstream...
28b8f38
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes. But does the
wget
tool still not work in these recipes ? Withwget
, the current version would always be loaded. Alternatively, if the recipe is taken care of by a GitHub server, then there are definitely some macros that can get data from another GitHub. Or am I wrong ?BTW, thanks for the recipe :).
28b8f38
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fetching and versioning works diferently within bitbake. will take deeper look on this later. one solution would be that after each update you set git tag, which can be taken by bitbake after.
28b8f38
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh... ok... thanks.