aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorwsnipex <wsnipex@a1.net>2022-11-02 12:57:01 +0100
committerwsnipex <wsnipex@a1.net>2022-11-02 13:15:55 +0100
commit2fffc98eb33e1b8e2405b7a267c935dc5420d135 (patch)
tree72aa5b21e21d7ba1c0fe2b760d4489384bc5e34a
parent4173468cc9d3ad477028b554fe1728f2e84aebc1 (diff)
fix ubuntu ppa packaging for Matrix
-rwxr-xr-xtools/Linux/packaging/package-kodi-launchpad.sh25
1 files changed, 16 insertions, 9 deletions
diff --git a/tools/Linux/packaging/package-kodi-launchpad.sh b/tools/Linux/packaging/package-kodi-launchpad.sh
index af8a3c32af..d12cb32f6d 100755
--- a/tools/Linux/packaging/package-kodi-launchpad.sh
+++ b/tools/Linux/packaging/package-kodi-launchpad.sh
@@ -1,16 +1,22 @@
-#/bin/bash
+#!/bin/bash
-releaseversion=${VERSION:-"19.0"}
+releaseversion=${VERSION:-"AUTO"}
epoch=${EPOCH:-"2"}
gitrev=${GITREV:-"$(git log -1 --pretty=format:"%h")"}
tag=${TAG:-${gitrev}}
tagrev=${tagrev:-"0"}
-dists=${DISTS:-"groovy focal bionic"}
-#debuildopts="--no-lintian -d"
+dists=${DISTS:-"kinetic jammy focal bionic"}
gpgkey=${GPG_KEY:-"jenkins (jenkins build bot) <jenkins@kodi.tv>"}
ppa=${PPA:-"nightly"}
-debianrepo=${DEBIAN:-"https://github.com/xbmc/xbmc-packaging"}
+debianrepo="${DEBIAN:-"https://github.com/xbmc/xbmc-packaging"}"
debianbranch=${DEBIANBRANCH:-"Matrix"}
+
+if [ "$releaseversion" = "AUTO" ]; then
+ majorversion="$(awk '/VERSION_MAJOR/ {print $2}' version.txt)"
+ minorversion="$(awk '/VERSION_MINOR/ {print $2}' version.txt)"
+ releaseversion="${majorversion}.${minorversion}"
+fi
+
version="${releaseversion}+git$(date '+%Y%m%d.%H%M')-${tag}"
debversion="${epoch}:${version}"
origtarball="kodi_${version}.orig.tar.gz"
@@ -23,7 +29,8 @@ declare -A PPAS=(
["wsnipex-stable"]='ppa:wsnipex/kodi-stable'
)
-[ -d debian ] && rm -rf debian
+# clean up before creating the source tarball
+git clean -xfd
# set build info
date '+%Y%m%d' > BUILDDATE
@@ -35,9 +42,9 @@ wget -O - ${debianrepo}/archive/${debianbranch}.tar.gz | tar xzv --strip-compone
# add tarballs for internal ffmpeg, libdvd
tools/depends/target/ffmpeg/autobuild.sh -d || { echo "Error downloading ffmpeg"; exit 2; }
-make -C tools/depends/target/libdvdnav download GITREV="" || { echo "Error downloading libdvdnav"; exit 2; }
-make -C tools/depends/target/libdvdread download GITREV="" || { echo "Error downloading libdvdread"; exit 2; }
-make -C tools/depends/target/libdvdcss download GITREV="" || { echo "Error downloading libdvdcss"; exit 2; }
+make -C tools/depends/target/libdvdnav download || { echo "Error downloading libdvdnav"; exit 2; }
+make -C tools/depends/target/libdvdread download || { echo "Error downloading libdvdread"; exit 2; }
+make -C tools/depends/target/libdvdcss download || { echo "Error downloading libdvdcss"; exit 2; }
make -C tools/depends/target/dav1d download || { echo "Error downloading dav1d"; exit 2; }
# create orig tarball if needed