diff options
author | fuzzard <fuzzard@users.noreply.github.com> | 2022-12-06 06:44:31 +1000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-12-06 06:44:31 +1000 |
commit | 813a194c4e8d3f9bcfd4c18b04be0fd596036f84 (patch) | |
tree | ffcfd895db9a67aece56afde9e1b2baa5081a3bb | |
parent | 39e66d5264c961646c5ea51bced131787d94c7c1 (diff) | |
parent | 2fffc98eb33e1b8e2405b7a267c935dc5420d135 (diff) |
Merge pull request #22086 from wsnipex/fix_ppa_packaging
fix ubuntu ppa packaging for Matrix
-rwxr-xr-x | tools/Linux/packaging/package-kodi-launchpad.sh | 25 |
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 |