mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-24 11:16:51 +00:00
config/path: add support for package metadata scripts, declare $PKG_DIR
Signed-off-by: Stephan Raue <stephan@openelec.tv>
This commit is contained in:
parent
a6e437c85b
commit
4dacd698e1
22
config/path
22
config/path
@ -41,6 +41,7 @@ BUILD=$BUILD_BASE.OpenELEC-$PROJECT.$TARGET_ARCH.$OPENELEC_VERSION
|
||||
PKG_BUILD=$BUILD/$1\[-_][0-9]*
|
||||
TARGET_IMG=$ROOT/$TARGET
|
||||
TARGET_ADDONS="$TARGET_IMG/$ADDONS/$ADDON_PATH"
|
||||
ADDON_BUILD="$BUILD/$ADDONS/$1"
|
||||
STAMPS_NOARCH=.stamps
|
||||
STAMPS=$BUILD/.stamps
|
||||
DOCS=DOCS
|
||||
@ -242,6 +243,27 @@ INDENT_SIZE=4
|
||||
VERSION_SUFFIX=$TARGET_ARCH
|
||||
[ -n "$TARGET_PLATFORM" ] && VERSION_SUFFIX=$TARGET_PLATFORM
|
||||
|
||||
# set package metadata
|
||||
PKG_NAME="$1"
|
||||
PKG_VERSION="0.0invalid"
|
||||
PKG_REV="0"
|
||||
PKG_ARCH="any"
|
||||
PKG_LICENSE="unknown"
|
||||
PKG_SITE=""
|
||||
PKG_URL=""
|
||||
PKG_DEPENDS=""
|
||||
PKG_BUILD_DEPENDS=""
|
||||
PKG_PRIORITY="optional"
|
||||
PKG_SECTION="misc"
|
||||
PKG_SHORTDESC="$1 (autogenerated)"
|
||||
PKG_LONGDESC=""
|
||||
PKG_IS_ADDON="no"
|
||||
|
||||
[ -n "$1" ] && PKG_DIR=`find $PACKAGES -type d -name $1 2>/dev/null`
|
||||
|
||||
[ -r $PKG_DIR/meta ] && . $PKG_DIR/meta
|
||||
[ "$PKG_IS_ADDON" = "yes" ] && PKG_ADDON_ID="addon.$PKG_SECTION.$PKG_NAME"
|
||||
|
||||
# read generic personal options if available
|
||||
if [ -f ~/.openelec/options ]; then
|
||||
. ~/.openelec/options
|
||||
|
Loading…
x
Reference in New Issue
Block a user