Skip to content

Commit

Permalink
added addon-repository infrastructure
Browse files Browse the repository at this point in the history
  • Loading branch information
pipelka committed Nov 7, 2011
1 parent c784688 commit 71ddc32
Show file tree
Hide file tree
Showing 9 changed files with 80 additions and 3 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Expand Up @@ -7,3 +7,5 @@ config.*
libtool
Makefile
xbmc-addon-xvdr-*.tar.gz
addon-repository
pvr.vdr.xvdr-*.zip
29 changes: 27 additions & 2 deletions Makefile.am
@@ -1,8 +1,12 @@
DATE = $(shell date +%Y%m%d)

SUBDIRS = \
src \
addons
addons \
src

DIST_SUBDIRS = \
$(SUBDIRS) \
data

EXTRA_DIST = \
include
Expand All @@ -20,3 +24,24 @@ dist-zip-daily:
dist-git: all
GIT_REV=`git --no-pager log --abbrev=7 -n 1 --pretty=format:"%h %ci" HEAD | cut -f1 -d' '` ; \
make VERSION=$$GIT_REV dist

repo: all dist-zip
make -C data all
rm -Rf addon-repository
mkdir -p addon-repository/pvr.vdr.xvdr
cp pvr.vdr.xvdr-$(VERSION).zip addon-repository/pvr.vdr.xvdr
cp addons/pvr.vdr.xvdr/icon.png addon-repository/pvr.vdr.xvdr
cp data/addons.xml addon-repository
cp data/addons.xml.md5 addon-repository

repo-daily: all dist-zip-daily
make -C data all
rm -Rf addon-repository
mkdir -p addon-repository/pvr.vdr.xvdr
cp pvr.vdr.xvdr-$(VERSION).$(DATE).zip addon-repository/pvr.vdr.xvdr
cp addons/pvr.vdr.xvdr/icon.png addon-repository/pvr.vdr.xvdr
cat data/addons.xml | sed "s/$(VERSION)/$(VERSION).$(DATE)/g" > addon-repository/addons.xml
cd addon-repository && md5sum addons.xml > addons.xml.md5

release-repo-daily: repo-daily
cp -r addon-repository/* ~/Dropbox/Public/xbmc-addon-xvdr
1 change: 1 addition & 0 deletions addons/pvr.vdr.xvdr/.gitignore
@@ -1 +1,2 @@
XBMC_VDR_xvdr.pvr
addon.xml
3 changes: 3 additions & 0 deletions addons/pvr.vdr.xvdr/Makefile.am
Expand Up @@ -5,6 +5,9 @@ addon_DATA = \
XBMC_VDR_xvdr.pvr \
icon.png

XBMC_VDR_xvdr.pvr:
make -C ../../src

install-data-hook: XBMC_VDR_xvdr.pvr
-cp -Rf $(srcdir)/resources $(DESTDIR)$(addondir)
chmod -R +w $(DESTDIR)$(addondir)/resources
Expand Down
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<addon
id="pvr.vdr.xvdr"
version="0.9.5"
version="@VERSION@"
name="VDR XVDR Client"
provider-name="Alexander Pipelka, Alwin Esch, Team XBMC">
<requires>
Expand All @@ -20,4 +20,11 @@
<disclaimer>This is unstable software! The authors are in no way responsible for failed recordings, incorrect timers, wasted hours, or any other undesirable effects..</disclaimer>
<platform>all</platform>
</extension>
<extension
point="xbmc.addon.repository"
name="XVDR Add-on Repository">
<info compressed="false">http://dl.dropbox.com/u/240579/xbmc-addon-xvdr/addons.xml</info>
<checksum>http://dl.dropbox.com/u/240579/xbmc-addon-xvdr/addons.xml.md5</checksum>
<datadir zip="true">http://dl.dropbox.com/u/240579/xbmc-addon-xvdr/addons.xml</datadir>
</extension>
</addon>
5 changes: 5 additions & 0 deletions configure.in
Expand Up @@ -34,11 +34,16 @@ if test x$zlib_found = xyes; then
AC_SUBST(ZLIB_LIBS)
fi

AC_SUBST(VERSIONEXT)

# Finally create all the generated files
AC_OUTPUT([
Makefile
addons/Makefile
addons/pvr.vdr.xvdr/Makefile
addons/pvr.vdr.xvdr/addon.xml
data/addons.xml
data/Makefile
src/Makefile
src/libTcpSocket/Makefile
src/xvdr/Makefile
Expand Down
2 changes: 2 additions & 0 deletions data/.gitignore
@@ -0,0 +1,2 @@
addons.xml
addons.xml.md5
11 changes: 11 additions & 0 deletions data/Makefile.am
@@ -0,0 +1,11 @@
all: addons.xml.md5

addons.xml.md5: addons.xml
md5sum addons.xml > addons.xml.md5

clean:
rm -f addons.xml
rm -f addons.xml.md5

EXTRA_DIST = \
addons.xml.in
21 changes: 21 additions & 0 deletions data/addons.xml.in
@@ -0,0 +1,21 @@
<?xml version="1.0" encoding="UTF-8"?>
<addons>
<addon id="pvr.vdr.xvdr" name="VDR XVDR Client" provider-name="Alexander Pipelka" version="@VERSION@">
<requires>
<c-pluff version="0.1"/>
</requires>
<extension
point="xbmc.pvrclient"
library_linux="XBMC_VDR_xvdr.pvr"
library_osx="XBMC_VDR_xvdr.pvr"
library_wingl="XBMC_VDR_xvdr_WIN32.pvr"
library_windx="XBMC_VDR_xvdr_WIN32.pvr"/>
<extension point="xbmc.addon.metadata">
<summary>PVR client to connect VDR to XBMC</summary>
<description>VDR frontend; supporting streaming of Live TV &amp; Recordings, EPG, Timers</description>
<description lang="de">Erlaubt das wiedergeben von Live TV und Aufnahmen mittels VDR auf XBMC. Des weiteren werden EPG, Kanalsuche und Timer unterstützt.</description>
<disclaimer>This is unstable software! The authors are in no way responsible for failed recordings, incorrect timers, wasted hours, or any other undesirable effects..</disclaimer>
<platform>all</platform>
</extension>
</addon>
</addons>

0 comments on commit 71ddc32

Please sign in to comment.