From 52205a3d58642931c0e0ceadf5aca05f545f70ed Mon Sep 17 00:00:00 2001 From: FrodoVDR Date: Tue, 2 Dec 2014 21:09:39 +0100 Subject: [PATCH] add debian --- debian/changelog | 30 +++++++++++++ debian/compat | 1 + debian/control | 14 ++++++ debian/copyright | 27 +++++++++++ debian/dirs | 1 + debian/get-new-snapshot.sh | 80 +++++++++++++++++++++++++++++++++ debian/install | 1 + debian/rules | 7 +++ debian/source/format | 1 + debian/source/options | 1 + logos/Das_Erste_HD_Logo.svg | 89 +++++++++++++++++++++++++++++++++++++ 11 files changed, 252 insertions(+) create mode 100644 debian/changelog create mode 100644 debian/compat create mode 100644 debian/control create mode 100644 debian/copyright create mode 100644 debian/dirs create mode 100755 debian/get-new-snapshot.sh create mode 100644 debian/install create mode 100755 debian/rules create mode 100644 debian/source/format create mode 100644 debian/source/options create mode 100644 logos/Das_Erste_HD_Logo.svg diff --git a/debian/changelog b/debian/changelog new file mode 100644 index 0000000..a4f4b5c --- /dev/null +++ b/debian/changelog @@ -0,0 +1,30 @@ +skindesigner-logos (0.0.1.git20141201.2141-0frodo0~trusty) trusty; urgency=low + + * New upstream snapshot (commit 110f600), build 0006 + + -- Frodo Mon, 01 Dec 2014 22:41:26 +0100 + +skindesigner-logos (0.0.1.git20141201.2139-0frodo0~precise) precise; urgency=low + + * New upstream snapshot (commit 110f600), build 0006 + + -- Frodo Mon, 01 Dec 2014 22:40:15 +0100 + +skindesigner-logos (0.0.1.git20141130.2201-0frodo0~trusty) trusty; urgency=low + + * New upstream snapshot (commit 0ca6d82), build 0000 + + -- Frodo Sun, 30 Nov 2014 23:04:37 +0100 + +skindesigner-logos (0.0.1.git20141130.2143-0frodo0~precise) precise; urgency=low + + * New upstream snapshot (commit 0ca6d82), build 0000 + + -- Frodo Sun, 30 Nov 2014 22:46:17 +0100 + +skindesigner-logos (0.0.1.git20141130.2135-0frodo0~precise) precise; urgency=low + + * New upstream snapshot (commit 0ca6d82), build 0000 + + -- Frodo Sun, 30 Nov 2014 22:37:45 +0100 + diff --git a/debian/compat b/debian/compat new file mode 100644 index 0000000..ec63514 --- /dev/null +++ b/debian/compat @@ -0,0 +1 @@ +9 diff --git a/debian/control b/debian/control new file mode 100644 index 0000000..7c4e174 --- /dev/null +++ b/debian/control @@ -0,0 +1,14 @@ +Source: skindesigner-logos +Section: misc +Priority: extra +Maintainer: Frodo +Uploaders: Frodo +Build-Depends: debhelper (>= 9) +Standards-Version: 3.9.3 +Homepage: https://github.com/FrodoVDR/svg-channellogos.git + +Package: skindesigner-logos +Architecture: all +Depends: ${misc:Depends}, vdr-plugin-skindesigner (>= 0.0.8) +Description: svg logos for skindesigner + diff --git a/debian/copyright b/debian/copyright new file mode 100644 index 0000000..387ba4b --- /dev/null +++ b/debian/copyright @@ -0,0 +1,27 @@ +Upstream Homepage: + https://github.com/CReimer/skindesigner-elchi + +Upstream Author: + CReimer <> + +License: + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License along + with this program; if not, write to the Free Software Foundation, Inc., + 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. + + The complete text of the GNU General Public License can be found + in /usr/share/common-licenses/GPL-2 on most Debian systems. + +License (Debian packaging): + The Debian packaging is licensed under the GPL, version 2 or any + later version, see /usr/share/common-licenses/GPL-2. diff --git a/debian/dirs b/debian/dirs new file mode 100644 index 0000000..c5039e1 --- /dev/null +++ b/debian/dirs @@ -0,0 +1 @@ +usr/share/vdr/plugins/skindesigner/logos diff --git a/debian/get-new-snapshot.sh b/debian/get-new-snapshot.sh new file mode 100755 index 0000000..728eede --- /dev/null +++ b/debian/get-new-snapshot.sh @@ -0,0 +1,80 @@ +echo Downloading latest from git repository... +# set -x + +BUILDDISTRIBUTION=$1 +GITSOURCE='https://github.com/FrodoVDR/svg-channellogos.git' + +DEB_SOURCE_PACKAGE=`egrep '^Source: ' debian/control | cut -f 2 -d ' '` +DISTRIBUTION=`dpkg-parsechangelog | grep ^Distribution: | sed -e 's/^Distribution:\s*//'` +VERSION_UPSTREAM=`dpkg-parsechangelog | grep ^Version: | sed -e 's/^Version:\s*//' -e s/-[^-]*$// -e s/\.git.*//` +GIT_SHA_OLD=`git show --pretty=format:"%h" --quiet | head -1 || true` + +if [ -d ${DEB_SOURCE_PACKAGE} ] ; then + rm -rf ${DEB_SOURCE_PACKAGE} +fi + +if [ -d ".git" ] ; then + git pull +fi + +VERSION_DATE=`/bin/date --utc +%0Y%0m%0d` +GITHEAD=`git rev-list HEAD | wc -l` +GITBUILD="$(printf '%04d' "$GITHEAD")" +BUILD=`/bin/date --utc +%H%M` + +VERSION_FULL="${VERSION_UPSTREAM}.git${VERSION_DATE}.${BUILD}" + +git clone --depth 1 ${GITSOURCE} ${DEB_SOURCE_PACKAGE} + +cd ${DEB_SOURCE_PACKAGE} +GIT_SHA=`git show --pretty=format:"%h" --quiet | head -1 || true` +cd .. + +CHKMAKE="/tmp/${DEB_SOURCE_PACKAGE}.make" +CHKFILE="/tmp/${DEB_SOURCE_PACKAGE}.exist" +[ -f ${CHKFILE} ] && rm ${CHKFILE} + +if [ "x${GIT_SHA_OLD}" == "x${GIT_SHA}" ] ; then + echo "Keine neue Version von ${DEB_SOURCE_PACKAGE} gefunden: ${GIT_SHA_OLD} = ${GIT_SHA}" | tee ${CHKFILE} + if [ -f ${CHKMAKE} ] ; then +# exit 1 + echo + fi +fi + +if [ $DISTRIBUTION != 'trusty' ] ; then + DISTRIBUTION='trusty' +else + DISTRIBUTION='precise' +fi + +if [ ! -z $BUILDDISTRIBUTION ] ; then + DISTRIBUTION=$BUILDDISTRIBUTION +fi + +ARCHTYPEN="xz:J bz2:j gz:z" +for archtyp in ${ARCHTYPEN} +do + arch=`echo $archtyp | cut -d: -f1` + pack=`echo $archtyp | cut -d: -f2` + DEBSRCPKGFILE="../${DEB_SOURCE_PACKAGE}_${VERSION_FULL}.orig.tar.${arch}" + DEBSRCPKGFILEBAK="${DEBSRCPKGFILE}.1" + + if [ -f ${DEBSRCPKGFILE} ] ; then + mv ${DEBSRCPKGFILE} ${DEBSRCPKGFILEBAK} + fi + + if [ -f ${DEBSRCPKGFILE} -o -f ${DEBSRCPKGFILEBAK} ] ; then + echo "$DEBSRCPKGFILE or $DEBSRCPKGFILEBAK exists"; + continue; + else + echo $DEBSRCPKGFILE + tar --exclude=.git --exclude=debian -c${pack}f ${DEBSRCPKGFILE} ${DEB_SOURCE_PACKAGE} + rm -rf ${DEB_SOURCE_PACKAGE} + + dch -b -D ${DISTRIBUTION} -v "${VERSION_FULL}-0frodo0~${DISTRIBUTION}" "New upstream snapshot (commit ${GIT_SHA}), build ${GITBUILD}" + break; + fi +done + +exit 0 diff --git a/debian/install b/debian/install new file mode 100644 index 0000000..f1365bd --- /dev/null +++ b/debian/install @@ -0,0 +1 @@ +logos/* usr/share/vdr/plugins/skindesigner/logos diff --git a/debian/rules b/debian/rules new file mode 100755 index 0000000..a8e4ca9 --- /dev/null +++ b/debian/rules @@ -0,0 +1,7 @@ +#!/usr/bin/make -f + +#DH_VERBOSE=1 + +%: + dh $@ + diff --git a/debian/source/format b/debian/source/format new file mode 100644 index 0000000..89ae9db --- /dev/null +++ b/debian/source/format @@ -0,0 +1 @@ +3.0 (native) diff --git a/debian/source/options b/debian/source/options new file mode 100644 index 0000000..b7bc1f2 --- /dev/null +++ b/debian/source/options @@ -0,0 +1 @@ +compression = "xz" diff --git a/logos/Das_Erste_HD_Logo.svg b/logos/Das_Erste_HD_Logo.svg new file mode 100644 index 0000000..c0eb15c --- /dev/null +++ b/logos/Das_Erste_HD_Logo.svg @@ -0,0 +1,89 @@ + + + + + + + + + + + image/svg+xml + + + + + + + + + + + + + + +