Skip to content

Modify mkpkg scripts to move packages to sources and add URL files #7

@demsullivan

Description

@demsullivan

OpenELEC's build system is designed around the idea that it automatically downloads OE-compatible source packages from a web server. This behaviour can be overridden by running the mkpkg script, moving the resulting package to OPENELEC_ROOT\sources and outputting a fake $PKG_NAME-$PKG_VER.tar.xz.url file to OPENELEC_ROOT\sources.

We'll need to edit each mkpkg script in tools/mkpkg and add the following to the end:

 echo "copying tar balls to sources..."
   if [ ! -d ../../sources/ ]; then
      mkdir ../../sources/
   fi
   if [ ! -d ../../sources/<name>/ ]; then
      mkdir ../../sources/<name>/
   fi
   mv <name>-$GIT_REV.tar.xz ../../sources/<name>/

 echo "generate md5 and url files..."
   cd ../..
   md5sum sources/<name>/<name>-$GIT_REV.tar.xz > sources/<name>/<name>-$GIT_REV.tar.xz.md5
   echo " http://sources.openelec.tv/devel/<name>-$GIT_REV.tar.xz" > sources/<name>/<name>-$GIT_REV.tar.xz.url
   echo "Source tar balls generated for <name> successfully."

Where <name> is the name of the package.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions