2013-01-31, 21:25
(2013-01-31, 06:01)apnar Wrote: There are a few ways to skin the cat for this one. I thought I'd share a small shell script I use to inject the latest cmyth into OpenELEC source. It's not as clean as the method suggested above, but there is no need for an http server and it can be easily run as a single script:
Code:#!/bin/bash
# change path to where you keep your git clone
cd /tank/xbmc/openelec-git/OpenELEC.tv
source ./packages/mediacenter/xbmc-pvr-addons/meta
if [ ! -d ./sources/$PKG_NAME/ ]; then
mkdir -p ./sources/$PKG_NAME/
fi
wget --no-check-certificate https://github.com/fetzerch/xbmc-pvr-addons/archive/master.zip
unzip master.zip
mv xbmc-pvr-addons-master $PKG_NAME-$PKG_VERSION
tar -cJf $PKG_NAME-$PKG_VERSION.tar.xz $PKG_NAME-$PKG_VERSION
rm -r $PKG_NAME-$PKG_VERSION master.zip
mv $PKG_NAME-$PKG_VERSION.tar.xz ./sources/$PKG_NAME/
md5sum sources/$PKG_NAME/$PKG_NAME-$PKG_VERSION.tar.xz > sources/$PKG_NAME/$PKG_NAME-$PKG_VERSION.tar.xz.md5
echo "http://sources.openelec.tv/devel/$PKG_NAME-$PKG_VERSION.tar.xz" > ./sources/$PKG_NAME/$PKG_NAME-$PKG_VERSION.tar.xz.url
rm -rf ./build.OpenELEC*/.stamps/xbmc-pvr-addons ./build.OpenELEC*/xbmc-pvr-addons-* ./build.OpenELEC*/image/.stamps/xbmc-pvr-addons
Nice! I wasn't aware that you can build it like this. This is definitively something for our wiki (http://wiki.xbmc.org/index.php?title=PVR...FromSource).
Cheers,Christian