bintron-r1.eclass: add BINTRON_NAME

Signed-off-by: Alfred Wingate <parona@protonmail.com>
This commit is contained in:
Alfred Wingate 2024-03-01 03:23:24 +02:00
parent f88d00fec8
commit 474f62917d
No known key found for this signature in database
GPG Key ID: A12750536B5E7010

View File

@ -74,15 +74,21 @@ IDEPEND="
QA_PREBUILT='*' QA_PREBUILT='*'
QA_PRESTRIPPED='*' QA_PRESTRIPPED='*'
# @ECLASS_VARIABLE: BINTRON_NAME
# @PRE_INHERIT
# @DESCRIPTION:
# Name of the package
: ${BINTRON_NAME:="${PN}"}
# @ECLASS_VARIABLE: BINTRON_HOME # @ECLASS_VARIABLE: BINTRON_HOME
# @DESCRIPTION: # @DESCRIPTION:
# Path where the package contents will we installed. # Path where the package contents will we installed.
: ${BINTRON_HOME:="/opt/${PN}/"} : ${BINTRON_HOME:="/opt/${BINTRON_NAME}/"}
# @ECLASS_VARIABLE: BINTRON_EXECUTABLES # @ECLASS_VARIABLE: BINTRON_EXECUTABLES
# @DESCRIPTION: # @DESCRIPTION:
# List of executable symlinks to create # List of executable symlinks to create
: ${BINTRON_EXECUTABLES:="${PN}"} : ${BINTRON_EXECUTABLES:="${BINTRON_NAME}"}
# @FUNCTION: bintron-r1_pkg_pretend # @FUNCTION: bintron-r1_pkg_pretend
# @DESCRIPTION: # @DESCRIPTION:
@ -102,8 +108,8 @@ bintron-r1_src_prepare() {
chromium_remove_language_paks chromium_remove_language_paks
popd >/dev/null || die "location reset for language cleanup failed" popd >/dev/null || die "location reset for language cleanup failed"
if [[ -d "${WORKDIR}/usr/share/doc/${PN}" ]]; then if [[ -d "${WORKDIR}/usr/share/doc/${BINTRON_NAME}" ]]; then
mv "${WORKDIR}/usr/share/doc/${PN}/" "${WORKDIR}/usr/share/doc/${PF}" || die mv "${WORKDIR}/usr/share/doc/${BINTRON_NAME}/" "${WORKDIR}/usr/share/doc/${PF}" || die
fi fi
if [[ -e "${WORKDIR}/usr/share/doc/${PF}/changelog.gz" ]]; then if [[ -e "${WORKDIR}/usr/share/doc/${PF}/changelog.gz" ]]; then