From 3aa414836bc71da47fbf7f92b858bd416661f379 Mon Sep 17 00:00:00 2001 From: Alexandre Aubin Date: Wed, 12 Feb 2020 17:57:37 +0000 Subject: [PATCH] Add miniupnpc build tweak --- scripts/ynh-custom-builds | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/scripts/ynh-custom-builds b/scripts/ynh-custom-builds index 9dc198f..cebb348 100755 --- a/scripts/ynh-custom-builds +++ b/scripts/ynh-custom-builds @@ -3,7 +3,7 @@ readonly THISSCRIPT=$0 readonly PACKAGE=$1 readonly BRANCH=$2 -readonly DISTRIB="stretch" +readonly DISTRIB="buster" source /home/vinaigrette/config/config source /home/vinaigrette/scripts/common.sh @@ -40,7 +40,7 @@ function main() function validate_arguments() { - [[ $PACKAGE =~ ^metronome$ ]] || critical "Invalid package $PACKAGE" + [[ $PACKAGE =~ ^metronome|miniupnpc$ ]] || critical "Invalid package $PACKAGE" #[[ $PACKAGE =~ ^metronome|rspamd|unscd|python-toml$ ]] || critical "Invalid package $PACKAGE" # (These are the old stuff for which we had custom builds in stretch) [[ $BRANCH =~ ^testing|stable|unstable$ ]] || critical "Invalid branch $BRANCH" [[ "$(tty)" != "not a tty" ]] || critical "You aint in a tty (are you in a 'lxc exec' ?) The script can't run because pbuilder won't be happy :|" @@ -50,6 +50,13 @@ function validate_arguments() # Build recipe / tweaks # # ##################### # +function tweak_miniupnpc() +{ + # For some reason metronome version must include a revision ("-x") + readonly VERSION="$(dpkg-parsechangelog -S Version 2>/dev/null)+yunohost" +} + + function tweak_metronome() { # For some reason metronome version must include a revision ("-x")