From bc1ef1e75dfdd9e57296f5dbd07b291795a929fc Mon Sep 17 00:00:00 2001 From: Gwenhael Le Moine Date: Sat, 22 Jan 2022 10:52:07 +0100 Subject: [PATCH] git native way to determine latest tag --- a/broadcom-bt-firmware/SlackBuild | 4 +++- a/pine64-platform-scripts/SlackBuild | 4 +++- a/rpi-firmware-nonfree/SlackBuild | 4 +++- ap/amdgpud/SlackBuild | 4 +++- ap/bandwhich/SlackBuild | 4 +++- ap/bat/SlackBuild | 4 +++- ap/btm/SlackBuild | 4 +++- ap/checkssl/SlackBuild | 4 +++- ap/delta/SlackBuild | 4 +++- ap/diskus/SlackBuild | 4 +++- ap/dive/SlackBuild | 4 +++- ap/dust/SlackBuild | 4 +++- ap/esptool/SlackBuild | 4 +++- ap/exa/SlackBuild | 4 +++- ap/f3/SlackBuild | 4 +++- ap/fd/SlackBuild | 2 ++ ap/fish/SlackBuild | 4 +++- ap/getssl/SlackBuild | 4 +++- ap/grex/SlackBuild | 4 +++- ap/ht/SlackBuild | 4 +++- ap/httpie/git.SlackBuild | 2 ++ ap/hyperfine/SlackBuild | 4 +++- ap/icr/SlackBuild | 4 +++- ap/ijq/SlackBuild | 2 ++ ap/ion/SlackBuild | 2 ++ ap/ledger/SlackBuild | 4 +++- ap/lsd/SlackBuild | 4 +++- ap/lsyncd/SlackBuild | 4 +++- ap/mdcat/SlackBuild | 4 +++- ap/motion/SlackBuild | 4 +++- ap/nu/SlackBuild | 4 +++- ap/procs/SlackBuild | 4 +++- ap/ripgrep/SlackBuild | 4 +++- ap/rustup/SlackBuild | 4 +++- ap/sd/SlackBuild | 4 +++- ap/starship/SlackBuild | 4 +++- ap/stow/SlackBuild | 2 ++ ap/tldr/SlackBuild | 4 +++- ap/tv/SlackBuild | 4 +++- ap/viu/SlackBuild | 4 +++- ap/ycmd/SlackBuild | 4 +++- ap/ytop/SlackBuild | 4 +++- d/ameba/SlackBuild | 4 +++- d/chruby/SlackBuild | 4 +++- d/crystal/SlackBuild | 6 +++++- d/dtc/SlackBuild | 2 ++ d/factor/SlackBuild | 2 ++ d/gforth/SlackBuild | 2 ++ d/newrpl/SlackBuild | 2 ++ d/nodejs-bin/SlackBuild | 2 +- d/rbspy/SlackBuild | 4 +++- d/retro/SlackBuild | 2 ++ d/rpn/SlackBuild | 4 +++- d/ruby-install/SlackBuild | 4 +++- d/scry/SlackBuild | 4 +++- d/scryer-prolog/SlackBuild | 4 +++- d/wabt/SlackBuild | 4 +++- l/apcu/SlackBuild | 4 +++- l/basu/SlackBuild | 4 +++- l/fmt/SlackBuild | 4 +++- l/hinnant-date/SlackBuild | 4 +++- l/libucl/SlackBuild | 4 +++- l/python-cairo-cffi/SlackBuild | 2 ++ l/pywlroots/git.SlackBuild | 2 ++ l/raylib/SlackBuild | 4 +++- l/spdlog/SlackBuild | 4 +++- l/xkbcommon/git.SlackBuild | 2 ++ lua/awesome/SlackBuild | 2 +- lua/lgi/SlackBuild | 2 +- lua/luarocks/SlackBuild | 2 ++ n/calibre-web/SlackBuild | 4 +++- n/pluxml/SlackBuild | 4 +++- wayland/cage/SlackBuild | 4 +++- wayland/foot/SlackBuild | 2 ++ wayland/imv/SlackBuild | 4 +++- wayland/kanshi/SlackBuild | 4 +++- wayland/lswt/SlackBuild | 2 ++ wayland/mako/SlackBuild | 4 +++- wayland/qtile/SlackBuild | 4 +++- wayland/river/SlackBuild | 4 +++- wayland/seatd/SlackBuild | 6 ++++-- wayland/swaybg/SlackBuild | 4 +++- wayland/swayidle/SlackBuild | 4 +++- wayland/swaylock/SlackBuild | 4 +++- wayland/swayr/SlackBuild | 2 ++ wayland/waybar/SlackBuild | 4 +++- wayland/wlopm/SlackBuild | 2 ++ wayland/wlr-randr/SlackBuild | 4 +++- xap/alacritty/SlackBuild | 4 +++- xap/alttab/SlackBuild | 4 +++- xap/brightnessctl/SlackBuild | 4 +++- xap/gammastep/SlackBuild | 2 ++ xap/i3status-rust/SlackBuild | 4 +++- xap/image-roll/SlackBuild | 4 +++- xap/kitty/SlackBuild | 4 +++- xap/leocad/SlackBuild | 4 +++- xap/nextcloud-client/SlackBuild | 4 +++- xap/polybar/SlackBuild | 4 +++- xap/radeon-profile/SlackBuild | 4 +++- xap/rkvm/SlackBuild | 4 +++- xap/wezterm/SlackBuild | 4 +++- xap/x48/SlackBuild | 4 +++- xap/x49gp/SlackBuild | 4 +++- y/cboard/SlackBuild | 2 ++ y/steamtinkerlaunch/SlackBuild | 7 +++++-- 105 files changed, 294 insertions(+), 87 deletions(-) diff --git a/a/broadcom-bt-firmware/SlackBuild b/a/broadcom-bt-firmware/SlackBuild index 56ba1117..3ef66329 100755 --- a/a/broadcom-bt-firmware/SlackBuild +++ b/a/broadcom-bt-firmware/SlackBuild @@ -3,7 +3,7 @@ # variables CWD=$(pwd) GITHUB_REPO=winterheart/broadcom-bt-firmware -VERSION=${VERSION:-$(curl -s https://api.github.com/repos/${GITHUB_REPO}/releases/latest | jq -r .tag_name | sed 's|^null$|trunk|')} # or VERSION=trunk +VERSION=${VERSION:-trunk} BUILD=${BUILD:-1} TAG=gwh @@ -25,6 +25,8 @@ rm -fr $PKG # mise en place [ ! -e $REPOSITORY ] && git clone https://github.com/${GITHUB_REPO}.git $REPOSITORY ( cd $REPOSITORY; git pull ) +[ "x$VERSION" == "xlatest" ] && VERSION=$(git for-each-ref --sort=taggerdate --format '%(tag)' | tail -n1) +[ "x$VERSION" == "x" ] && VERSION=trunk [ "x$VERSION" == "xtrunk" ] && VERSION="git_$(git log -1 --format=%h_%ad --date=format:%Y.%m.%d)" || git checkout $VERSION mkdir -p $PKG/lib/firmware/ diff --git a/a/pine64-platform-scripts/SlackBuild b/a/pine64-platform-scripts/SlackBuild index a4bab674..2d097b33 100755 --- a/a/pine64-platform-scripts/SlackBuild +++ b/a/pine64-platform-scripts/SlackBuild @@ -4,7 +4,7 @@ CWD=$(pwd) GITHUB_REPO=longsleep/build-pine64-image -VERSION=${VERSION:-$(curl -s https://api.github.com/repos/${GITHUB_REPO}/releases/latest | jq -r .tag_name | sed 's|^null$|trunk|')} # or VERSION=trunk +VERSION=${VERSION:-latest} BUILD=${BUILD:-1} TAG=gwh @@ -26,6 +26,8 @@ rm -fr $PKG # mise en place [ ! -e $REPOSITORY ] && git clone https://github.com/${GITHUB_REPO}.git $REPOSITORY ( cd $REPOSITORY; git pull ) +[ "x$VERSION" == "xlatest" ] && VERSION=$(git for-each-ref --sort=taggerdate --format '%(tag)' | tail -n1) +[ "x$VERSION" == "x" ] && VERSION=trunk [ "x$VERSION" == "xtrunk" ] && VERSION="git_$(git log -1 --format=%h_%ad --date=format:%Y.%m.%d)" || git checkout $VERSION mkdir -p $PKG/usr/bin diff --git a/a/rpi-firmware-nonfree/SlackBuild b/a/rpi-firmware-nonfree/SlackBuild index 0b9c3f2c..b98685f7 100755 --- a/a/rpi-firmware-nonfree/SlackBuild +++ b/a/rpi-firmware-nonfree/SlackBuild @@ -4,7 +4,7 @@ CWD=$(pwd) GITHUB_REPO=RPi-Distro/firmware-nonfree -VERSION=${VERSION:-$(curl -s https://api.github.com/repos/${GITHUB_REPO}/releases/latest | jq -r .tag_name | sed 's|^null$|trunk|')} # or VERSION=trunk +VERSION=${VERSION:-latest} BUILD=${BUILD:-1} TAG=gwh @@ -26,6 +26,8 @@ rm -fr $PKG # mise en place [ ! -e $REPOSITORY ] && git clone https://github.com/${GITHUB_REPO}.git $REPOSITORY ( cd $REPOSITORY; git pull ) +[ "x$VERSION" == "xlatest" ] && VERSION=$(git for-each-ref --sort=taggerdate --format '%(tag)' | tail -n1) +[ "x$VERSION" == "x" ] && VERSION=trunk [ "x$VERSION" == "xtrunk" ] && VERSION="git_$(git log -1 --format=%h_%ad --date=format:%Y.%m.%d)" || git checkout $VERSION mkdir -p $PKG/lib/firmware diff --git a/ap/amdgpud/SlackBuild b/ap/amdgpud/SlackBuild index cc1f2e1a..03d67e75 100755 --- a/ap/amdgpud/SlackBuild +++ b/ap/amdgpud/SlackBuild @@ -2,7 +2,7 @@ # variables GITHUB_REPO=Eraden/amdgpud -VERSION=${VERSION:-$(curl -s https://api.github.com/repos/${GITHUB_REPO}/releases/latest | jq -r .tag_name | sed 's|^null$|trunk|')} # or VERSION=trunk +VERSION=${VERSION:-latest} BUILD=${BUILD:-1} TAG=gwh @@ -31,6 +31,8 @@ git pull --all cp -R $REPOSITORY $TMP/ cd $TMP/$PRGNAM +[ "x$VERSION" == "xlatest" ] && VERSION=$(git for-each-ref --sort=taggerdate --format '%(tag)' | tail -n1) +[ "x$VERSION" == "x" ] && VERSION=trunk [ "x$VERSION" == "xtrunk" ] && VERSION="git_$(git log -1 --format=%h_%ad --date=format:%Y.%m.%d)" || git checkout $VERSION cargo build --release diff --git a/ap/bandwhich/SlackBuild b/ap/bandwhich/SlackBuild index 37794124..f837a74e 100755 --- a/ap/bandwhich/SlackBuild +++ b/ap/bandwhich/SlackBuild @@ -2,7 +2,7 @@ # variables GITHUB_REPO=imsnif/bandwhich -VERSION=${VERSION:-$(curl -s https://api.github.com/repos/${GITHUB_REPO}/releases/latest | jq -r .tag_name | sed 's|^null$|trunk|')} # or VERSION=trunk +VERSION=${VERSION:-latest} BUILD=${BUILD:-1} TAG=gwh @@ -31,6 +31,8 @@ git pull --all cp -R $REPOSITORY $TMP/ cd $TMP/$PRGNAM +[ "x$VERSION" == "xlatest" ] && VERSION=$(git for-each-ref --sort=taggerdate --format '%(tag)' | tail -n1) +[ "x$VERSION" == "x" ] && VERSION=trunk [ "x$VERSION" == "xtrunk" ] && VERSION="git_$(git log -1 --format=%h_%ad --date=format:%Y.%m.%d)" || git checkout $VERSION cargo build --release diff --git a/ap/bat/SlackBuild b/ap/bat/SlackBuild index 8a82779d..a05216bf 100755 --- a/ap/bat/SlackBuild +++ b/ap/bat/SlackBuild @@ -2,7 +2,7 @@ # variables GITHUB_REPO=sharkdp/bat -VERSION=${VERSION:-$(curl -s https://api.github.com/repos/${GITHUB_REPO}/releases/latest | jq -r .tag_name | sed 's|^null$|trunk|')} # or VERSION=trunk +VERSION=${VERSION:-latest} BUILD=${BUILD:-1} TAG=gwh @@ -31,6 +31,8 @@ git pull --all cp -R $REPOSITORY $TMP/ cd $TMP/$PRGNAM +[ "x$VERSION" == "xlatest" ] && VERSION=$(git for-each-ref --sort=taggerdate --format '%(tag)' | tail -n1) +[ "x$VERSION" == "x" ] && VERSION=trunk [ "x$VERSION" == "xtrunk" ] && VERSION="git_$(git log -1 --format=%h_%ad --date=format:%Y.%m.%d)" || git checkout $VERSION cargo build --release diff --git a/ap/btm/SlackBuild b/ap/btm/SlackBuild index 6bd522b2..ac9a4f75 100755 --- a/ap/btm/SlackBuild +++ b/ap/btm/SlackBuild @@ -2,7 +2,7 @@ # variables GITHUB_REPO=clementtsang/bottom -VERSION=${VERSION:-$(curl -s https://api.github.com/repos/${GITHUB_REPO}/releases/latest | jq -r .tag_name | sed 's|^null$|trunk|')} # or VERSION=trunk +VERSION=${VERSION:-latest} BUILD=${BUILD:-1} TAG=gwh @@ -31,6 +31,8 @@ git pull --all cp -R $REPOSITORY $TMP/ cd $TMP/$PRGNAM +[ "x$VERSION" == "xlatest" ] && VERSION=$(git for-each-ref --sort=taggerdate --format '%(tag)' | tail -n1) +[ "x$VERSION" == "x" ] && VERSION=trunk [ "x$VERSION" == "xtrunk" ] && VERSION="git_$(git log -1 --format=%h_%ad --date=format:%Y.%m.%d)" || git checkout $VERSION cargo build --release diff --git a/ap/checkssl/SlackBuild b/ap/checkssl/SlackBuild index aeab0086..d33f4e3e 100755 --- a/ap/checkssl/SlackBuild +++ b/ap/checkssl/SlackBuild @@ -2,7 +2,7 @@ # variables GITHUB_REPO=srvrco/checkssl -VERSION=${VERSION:-$(curl -s https://api.github.com/repos/${GITHUB_REPO}/releases/latest | jq -r .tag_name | sed 's|^null$|trunk|')} # or VERSION=trunk +VERSION=${VERSION:-latest} BUILD=${BUILD:-1} TAG=gwh @@ -27,6 +27,8 @@ mkdir -p $PKG [ ! -e $REPOSITORY ] && git clone https://github.com/${GITHUB_REPO}.git $REPOSITORY cd $REPOSITORY git pull --all +[ "x$VERSION" == "xlatest" ] && VERSION=$(git for-each-ref --sort=taggerdate --format '%(tag)' | tail -n1) +[ "x$VERSION" == "x" ] && VERSION=trunk [ "x$VERSION" == "xtrunk" ] && VERSION="git_$(git log -1 --format=%h_%ad --date=format:%Y.%m.%d)" || git checkout $VERSION mkdir -p $PKG$PREFIX/bin diff --git a/ap/delta/SlackBuild b/ap/delta/SlackBuild index ee67e7bf..8ca4eda6 100755 --- a/ap/delta/SlackBuild +++ b/ap/delta/SlackBuild @@ -2,7 +2,7 @@ # variables GITHUB_REPO=dandavison/delta -VERSION=${VERSION:-$(curl -s https://api.github.com/repos/${GITHUB_REPO}/releases/latest | jq -r .tag_name | sed 's|^null$|trunk|')} # or VERSION=trunk +VERSION=${VERSION:-latest} BUILD=${BUILD:-1} TAG=gwh @@ -31,6 +31,8 @@ git pull --all cp -R $REPOSITORY $TMP/ cd $TMP/$PRGNAM +[ "x$VERSION" == "xlatest" ] && VERSION=$(git for-each-ref --sort=taggerdate --format '%(tag)' | tail -n1) +[ "x$VERSION" == "x" ] && VERSION=trunk [ "x$VERSION" == "xtrunk" ] && VERSION="git_$(git log -1 --format=%h_%ad --date=format:%Y.%m.%d)" || git checkout $VERSION cargo build --release diff --git a/ap/diskus/SlackBuild b/ap/diskus/SlackBuild index 0dd577d8..d6dad1d0 100755 --- a/ap/diskus/SlackBuild +++ b/ap/diskus/SlackBuild @@ -2,7 +2,7 @@ # variables GITHUB_REPO=sharkdp/diskus -VERSION=${VERSION:-$(curl -s https://api.github.com/repos/${GITHUB_REPO}/releases/latest | jq -r .tag_name | sed 's|^null$|trunk|')} # or VERSION=trunk +VERSION=${VERSION:-latest} BUILD=${BUILD:-1} TAG=gwh @@ -31,6 +31,8 @@ git pull --all cp -R $REPOSITORY $TMP/ cd $TMP/$PRGNAM +[ "x$VERSION" == "xlatest" ] && VERSION=$(git for-each-ref --sort=taggerdate --format '%(tag)' | tail -n1) +[ "x$VERSION" == "x" ] && VERSION=trunk [ "x$VERSION" == "xtrunk" ] && VERSION="git_$(git log -1 --format=%h_%ad --date=format:%Y.%m.%d)" || git checkout $VERSION cargo build --release diff --git a/ap/dive/SlackBuild b/ap/dive/SlackBuild index 86e0b31f..b6d03493 100755 --- a/ap/dive/SlackBuild +++ b/ap/dive/SlackBuild @@ -2,7 +2,7 @@ # variables GITHUB_REPO=wagoodman/dive -VERSION=${VERSION:-$(curl -s https://api.github.com/repos/${GITHUB_REPO}/releases/latest | jq -r .tag_name | sed 's|^null$|trunk|')} # or VERSION=trunk +VERSION=${VERSION:-latest} BUILD=${BUILD:-1} TAG=gwh @@ -31,6 +31,8 @@ git pull --all cp -R $REPOSITORY $TMP/ cd $TMP/$PRGNAM +[ "x$VERSION" == "xlatest" ] && VERSION=$(git for-each-ref --sort=taggerdate --format '%(tag)' | tail -n1) +[ "x$VERSION" == "x" ] && VERSION=trunk [ "x$VERSION" == "xtrunk" ] && VERSION="git_$(git log -1 --format=%h_%ad --date=format:%Y.%m.%d)" || git checkout $VERSION make diff --git a/ap/dust/SlackBuild b/ap/dust/SlackBuild index 5ce03dfd..39a4e7a5 100755 --- a/ap/dust/SlackBuild +++ b/ap/dust/SlackBuild @@ -2,7 +2,7 @@ # variables GITHUB_REPO=bootandy/dust -VERSION=${VERSION:-$(curl -s https://api.github.com/repos/${GITHUB_REPO}/releases/latest | jq -r .tag_name | sed 's|^null$|trunk|')} # or VERSION=trunk +VERSION=${VERSION:-latest} BUILD=${BUILD:-1} TAG=gwh @@ -31,6 +31,8 @@ git pull --all cp -R $REPOSITORY $TMP/ cd $TMP/$PRGNAM +[ "x$VERSION" == "xlatest" ] && VERSION=$(git for-each-ref --sort=taggerdate --format '%(tag)' | tail -n1) +[ "x$VERSION" == "x" ] && VERSION=trunk [ "x$VERSION" == "xtrunk" ] && VERSION="git_$(git log -1 --format=%h_%ad --date=format:%Y.%m.%d)" || git checkout $VERSION cargo build --release diff --git a/ap/esptool/SlackBuild b/ap/esptool/SlackBuild index 256b6084..6ec44210 100755 --- a/ap/esptool/SlackBuild +++ b/ap/esptool/SlackBuild @@ -3,7 +3,7 @@ CWD=$(pwd) PRGNAM=$(basename $CWD) GITHUB_REPO=espressif/esptool -VERSION=${VERSION:-$(curl -s https://api.github.com/repos/${GITHUB_REPO}/releases/latest | jq -r .tag_name | sed 's|^null$|trunk|')} # or VERSION=trunk +VERSION=${VERSION:-latest} BUILD=1 ARCH=noarch @@ -26,6 +26,8 @@ git pull --all cp -R $REPOSITORY $TMP/$PRGNAM cd $TMP/$PRGNAM +[ "x$VERSION" == "xlatest" ] && VERSION=$(git for-each-ref --sort=taggerdate --format '%(tag)' | tail -n1) +[ "x$VERSION" == "x" ] && VERSION=trunk [ "x$VERSION" == "xtrunk" ] && VERSION="git_$(git log -1 --format=%h_%ad --date=format:%Y.%m.%d)" || git checkout $VERSION python setup.py install --root $PKG diff --git a/ap/exa/SlackBuild b/ap/exa/SlackBuild index 2da1c02c..c0d4b838 100755 --- a/ap/exa/SlackBuild +++ b/ap/exa/SlackBuild @@ -2,7 +2,7 @@ # variables GITHUB_REPO=ogham/exa -VERSION=${VERSION:-$(curl -s https://api.github.com/repos/${GITHUB_REPO}/releases/latest | jq -r .tag_name | sed 's|^null$|trunk|')} # or VERSION=trunk +VERSION=${VERSION:-latest} BUILD=${BUILD:-1} TAG=gwh @@ -31,6 +31,8 @@ git pull --all cp -R $REPOSITORY $TMP/ cd $TMP/$PRGNAM +[ "x$VERSION" == "xlatest" ] && VERSION=$(git for-each-ref --sort=taggerdate --format '%(tag)' | tail -n1) +[ "x$VERSION" == "x" ] && VERSION=trunk [ "x$VERSION" == "xtrunk" ] && VERSION="git_$(git log -1 --format=%h_%ad --date=format:%Y.%m.%d)" || git checkout $VERSION cargo build --release diff --git a/ap/f3/SlackBuild b/ap/f3/SlackBuild index 8067722c..a66c2623 100755 --- a/ap/f3/SlackBuild +++ b/ap/f3/SlackBuild @@ -2,7 +2,7 @@ # variables GITHUB_REPO=AltraMayor/f3 -VERSION=${VERSION:-$(curl -s https://api.github.com/repos/${GITHUB_REPO}/releases/latest | jq -r .tag_name | sed 's|^null$|trunk|')} # or VERSION=trunk +VERSION=${VERSION:-latest} BUILD=${BUILD:-1} TAG=gwh @@ -31,6 +31,8 @@ git pull --all cp -R $REPOSITORY $TMP/ cd $TMP/$PRGNAM +[ "x$VERSION" == "xlatest" ] && VERSION=$(git for-each-ref --sort=taggerdate --format '%(tag)' | tail -n1) +[ "x$VERSION" == "x" ] && VERSION=trunk [ "x$VERSION" == "xtrunk" ] && VERSION="git_$(git log -1 --format=%h_%ad --date=format:%Y.%m.%d)" || git checkout $VERSION make all extra diff --git a/ap/fd/SlackBuild b/ap/fd/SlackBuild index d561d750..2513c770 100755 --- a/ap/fd/SlackBuild +++ b/ap/fd/SlackBuild @@ -32,6 +32,8 @@ git pull --all cp -R $REPOSITORY $TMP/ cd $TMP/$PRGNAM +[ "x$VERSION" == "xlatest" ] && VERSION=$(git for-each-ref --sort=taggerdate --format '%(tag)' | tail -n1) +[ "x$VERSION" == "x" ] && VERSION=trunk [ "x$VERSION" == "xtrunk" ] && VERSION="git_$(git log -1 --format=%h_%ad --date=format:%Y.%m.%d)" || git checkout $VERSION cargo build --release diff --git a/ap/fish/SlackBuild b/ap/fish/SlackBuild index b9338bf9..80fda35f 100755 --- a/ap/fish/SlackBuild +++ b/ap/fish/SlackBuild @@ -5,7 +5,7 @@ CWD=$(pwd) PRGNAM=$(basename $CWD) GITHUB_REPO=fish-shell/fish-shell -VERSION=${VERSION:-$(curl -s https://api.github.com/repos/${GITHUB_REPO}/releases/latest | jq -r .tag_name | sed 's|^null$|trunk|')} # or VERSION=trunk +VERSION=${VERSION:-latest} ARCH=${ARCH:-$(uname -m)} BUILD=1 @@ -31,6 +31,8 @@ cd $TMP cp -R $REPOSITORY $TMP/$PRGNAM-$VERSION cd $TMP/$PRGNAM-$VERSION +[ "x$VERSION" == "xlatest" ] && VERSION=$(git for-each-ref --sort=taggerdate --format '%(tag)' | tail -n1) +[ "x$VERSION" == "x" ] && VERSION=trunk [ "x$VERSION" == "xtrunk" ] && VERSION="git_$(git log -1 --format=%h_%ad --date=format:%Y.%m.%d)" || git checkout $VERSION # configuration diff --git a/ap/getssl/SlackBuild b/ap/getssl/SlackBuild index 1d3e5ba9..e1093c0f 100755 --- a/ap/getssl/SlackBuild +++ b/ap/getssl/SlackBuild @@ -2,7 +2,7 @@ # variables GITHUB_REPO=srvrco/getssl -VERSION=${VERSION:-$(curl -s https://api.github.com/repos/${GITHUB_REPO}/releases/latest | jq -r .tag_name | sed 's|^null$|trunk|')} # or VERSION=trunk +VERSION=${VERSION:-latest} BUILD=${BUILD:-1} TAG=gwh @@ -27,6 +27,8 @@ mkdir -p $PKG [ ! -e $REPOSITORY ] && git clone https://github.com/${GITHUB_REPO}.git $REPOSITORY cd $REPOSITORY git pull --all +[ "x$VERSION" == "xlatest" ] && VERSION=$(git for-each-ref --sort=taggerdate --format '%(tag)' | tail -n1) +[ "x$VERSION" == "x" ] && VERSION=trunk [ "x$VERSION" == "xtrunk" ] && VERSION="git_$(git log -1 --format=%h_%ad --date=format:%Y.%m.%d)" || git checkout $VERSION mkdir -p $PKG$PREFIX/bin diff --git a/ap/grex/SlackBuild b/ap/grex/SlackBuild index e0f13d04..062f4dd9 100755 --- a/ap/grex/SlackBuild +++ b/ap/grex/SlackBuild @@ -2,7 +2,7 @@ # variables GITHUB_REPO=pemistahl/grex -VERSION=${VERSION:-$(curl -s https://api.github.com/repos/${GITHUB_REPO}/releases/latest | jq -r .tag_name | sed 's|^null$|trunk|')} # or VERSION=trunk +VERSION=${VERSION:-latest} BUILD=${BUILD:-1} TAG=gwh @@ -31,6 +31,8 @@ git pull --all cp -R $REPOSITORY $TMP/ cd $TMP/$PRGNAM +[ "x$VERSION" == "xlatest" ] && VERSION=$(git for-each-ref --sort=taggerdate --format '%(tag)' | tail -n1) +[ "x$VERSION" == "x" ] && VERSION=trunk [ "x$VERSION" == "xtrunk" ] && VERSION="git_$(git log -1 --format=%h_%ad --date=format:%Y.%m.%d)" || git checkout $VERSION cargo build --release diff --git a/ap/ht/SlackBuild b/ap/ht/SlackBuild index 4cdd80bf..57467780 100755 --- a/ap/ht/SlackBuild +++ b/ap/ht/SlackBuild @@ -2,7 +2,7 @@ # variables GITHUB_REPO=ducaale/ht -VERSION=${VERSION:-$(curl -s https://api.github.com/repos/${GITHUB_REPO}/releases/latest | jq -r .tag_name | sed 's|^null$|trunk|')} # or VERSION=trunk +VERSION=${VERSION:-latest} BUILD=${BUILD:-1} TAG=gwh @@ -31,6 +31,8 @@ git pull --all cp -R $REPOSITORY $TMP/ cd $TMP/$PRGNAM +[ "x$VERSION" == "xlatest" ] && VERSION=$(git for-each-ref --sort=taggerdate --format '%(tag)' | tail -n1) +[ "x$VERSION" == "x" ] && VERSION=trunk [ "x$VERSION" == "xtrunk" ] && VERSION="git_$(git log -1 --format=%h_%ad --date=format:%Y.%m.%d)" || git checkout $VERSION cargo build --release diff --git a/ap/httpie/git.SlackBuild b/ap/httpie/git.SlackBuild index 6ed28686..102f1055 100755 --- a/ap/httpie/git.SlackBuild +++ b/ap/httpie/git.SlackBuild @@ -34,6 +34,8 @@ git pull --all cp -R $REPOSITORY $TMP/$PRGNAM cd $TMP/$PRGNAM +[ "x$VERSION" == "xlatest" ] && VERSION=$(git for-each-ref --sort=taggerdate --format '%(tag)' | tail -n1) +[ "x$VERSION" == "x" ] && VERSION=trunk [ "x$VERSION" == "xtrunk" ] && VERSION="git_$(git log -1 --format=%h_%ad --date=format:%Y.%m.%d)" || git checkout $VERSION # installation diff --git a/ap/hyperfine/SlackBuild b/ap/hyperfine/SlackBuild index b1f586dd..5cbe7dd9 100755 --- a/ap/hyperfine/SlackBuild +++ b/ap/hyperfine/SlackBuild @@ -2,7 +2,7 @@ # variables GITHUB_REPO=sharkdp/hyperfine -VERSION=${VERSION:-$(curl -s https://api.github.com/repos/${GITHUB_REPO}/releases/latest | jq -r .tag_name | sed 's|^null$|trunk|')} # or VERSION=trunk +VERSION=${VERSION:-latest} BUILD=${BUILD:-1} TAG=gwh @@ -31,6 +31,8 @@ git pull --all cp -R $REPOSITORY $TMP/ cd $TMP/$PRGNAM +[ "x$VERSION" == "xlatest" ] && VERSION=$(git for-each-ref --sort=taggerdate --format '%(tag)' | tail -n1) +[ "x$VERSION" == "x" ] && VERSION=trunk [ "x$VERSION" == "xtrunk" ] && VERSION="git_$(git log -1 --format=%h_%ad --date=format:%Y.%m.%d)" || git checkout $VERSION cargo build --release diff --git a/ap/icr/SlackBuild b/ap/icr/SlackBuild index cf2a998d..48a7a481 100755 --- a/ap/icr/SlackBuild +++ b/ap/icr/SlackBuild @@ -2,7 +2,7 @@ # variables GITHUB_REPO=crystal-community/icr -VERSION=${VERSION:-$(curl -s https://api.github.com/repos/${GITHUB_REPO}/releases/latest | jq -r .tag_name | sed 's|^null$|trunk|')} # or VERSION=trunk +VERSION=${VERSION:-latest} BUILD=${BUILD:-1} TAG=gwh @@ -30,6 +30,8 @@ git pull --all cp -R $REPOSITORY $TMP/$PRGNAM cd $TMP/$PRGNAM +[ "x$VERSION" == "xlatest" ] && VERSION=$(git for-each-ref --sort=taggerdate --format '%(tag)' | tail -n1) +[ "x$VERSION" == "x" ] && VERSION=trunk [ "x$VERSION" == "xtrunk" ] && VERSION="git_$(git log -1 --format=%h_%ad --date=format:%Y.%m.%d)" || git checkout $VERSION make diff --git a/ap/ijq/SlackBuild b/ap/ijq/SlackBuild index c7d23c1e..1f08daca 100755 --- a/ap/ijq/SlackBuild +++ b/ap/ijq/SlackBuild @@ -30,6 +30,8 @@ git pull --all cp -R $REPOSITORY $TMP/ cd $TMP/$PRGNAM +[ "x$VERSION" == "xlatest" ] && VERSION=$(git for-each-ref --sort=taggerdate --format '%(tag)' | tail -n1) +[ "x$VERSION" == "x" ] && VERSION=trunk [ "x$VERSION" == "xtrunk" ] && VERSION="git_$(git log -1 --format=%h_%ad --date=format:%Y.%m.%d)" || git checkout $VERSION make install DESTDIR=$PKG prefix=$PREFIX mandir=$PREFIX/man diff --git a/ap/ion/SlackBuild b/ap/ion/SlackBuild index 48909835..078f6628 100755 --- a/ap/ion/SlackBuild +++ b/ap/ion/SlackBuild @@ -30,6 +30,8 @@ git pull --all cp -R $REPOSITORY $TMP/ cd $TMP/$PRGNAM +[ "x$VERSION" == "xlatest" ] && VERSION=$(git for-each-ref --sort=taggerdate --format '%(tag)' | tail -n1) +[ "x$VERSION" == "x" ] && VERSION=trunk [ "x$VERSION" == "xtrunk" ] && VERSION="git_$(git log -1 --format=%h_%ad --date=format:%Y.%m.%d)" || git checkout $VERSION cargo build --release diff --git a/ap/ledger/SlackBuild b/ap/ledger/SlackBuild index 57c22bd9..88bd3aba 100755 --- a/ap/ledger/SlackBuild +++ b/ap/ledger/SlackBuild @@ -7,7 +7,7 @@ CWD=$(pwd) PRGNAM=$(basename $CWD) GITHUB_REPO=ledger/ledger -VERSION=${VERSION:-$(curl -s https://api.github.com/repos/${GITHUB_REPO}/releases/latest | jq -r .tag_name | sed 's|^null$|trunk|')} # or VERSION=trunk +VERSION=${VERSION:-latest} ARCH=${ARCH:-$(uname -m)} BUILD=${BUILD:-3} TAG=${TAG:-gwh} @@ -47,6 +47,8 @@ find . \ \( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \ -exec chmod 644 {} \; +[ "x$VERSION" == "xlatest" ] && VERSION=$(git for-each-ref --sort=taggerdate --format '%(tag)' | tail -n1) +[ "x$VERSION" == "x" ] && VERSION=trunk [ "x$VERSION" == "xtrunk" ] && VERSION="git_$(git log -1 --format=%h_%ad --date=format:%Y.%m.%d)" || git checkout $VERSION ./acprep pull diff --git a/ap/lsd/SlackBuild b/ap/lsd/SlackBuild index 8d0e351c..0d582cb3 100755 --- a/ap/lsd/SlackBuild +++ b/ap/lsd/SlackBuild @@ -2,7 +2,7 @@ # variables GITHUB_REPO=Peltoche/lsd -VERSION=${VERSION:-$(curl -s https://api.github.com/repos/${GITHUB_REPO}/releases/latest | jq -r .tag_name | sed 's|^null$|trunk|')} # or VERSION=trunk +VERSION=${VERSION:-latest} BUILD=${BUILD:-1} TAG=gwh @@ -31,6 +31,8 @@ git pull --all cp -R $REPOSITORY $TMP/ cd $TMP/$PRGNAM +[ "x$VERSION" == "xlatest" ] && VERSION=$(git for-each-ref --sort=taggerdate --format '%(tag)' | tail -n1) +[ "x$VERSION" == "x" ] && VERSION=trunk [ "x$VERSION" == "xtrunk" ] && VERSION="git_$(git log -1 --format=%h_%ad --date=format:%Y.%m.%d)" || git checkout $VERSION cargo build --release diff --git a/ap/lsyncd/SlackBuild b/ap/lsyncd/SlackBuild index 6d139e52..0c841fdc 100755 --- a/ap/lsyncd/SlackBuild +++ b/ap/lsyncd/SlackBuild @@ -5,7 +5,7 @@ CWD=$(pwd) PRGNAM=$(basename $CWD) GITHUB_REPO=axkibe/lsyncd -VERSION=${VERSION:-$(curl -s https://api.github.com/repos/${GITHUB_REPO}/releases/latest | jq -r .tag_name | sed 's|^null$|trunk|')} # or VERSION=trunk +VERSION=${VERSION:-latest} ARCH=${ARCH:-$(uname -m)} BUILD=1 @@ -31,6 +31,8 @@ cd $TMP cp -R $REPOSITORY $TMP/$PRGNAM-$VERSION cd $TMP/$PRGNAM-$VERSION +[ "x$VERSION" == "xlatest" ] && VERSION=$(git for-each-ref --sort=taggerdate --format '%(tag)' | tail -n1) +[ "x$VERSION" == "x" ] && VERSION=trunk [ "x$VERSION" == "xtrunk" ] && VERSION="git_$(git log -1 --format=%h_%ad --date=format:%Y.%m.%d)" || git checkout $VERSION # configuration diff --git a/ap/mdcat/SlackBuild b/ap/mdcat/SlackBuild index ef1da601..def40097 100755 --- a/ap/mdcat/SlackBuild +++ b/ap/mdcat/SlackBuild @@ -2,7 +2,7 @@ # variables GITHUB_REPO=lunaryorn/mdcat -VERSION=${VERSION:-$(curl -s https://api.github.com/repos/${GITHUB_REPO}/releases/latest | jq -r .tag_name | sed 's|^null$|trunk|')} # or VERSION=trunk +VERSION=${VERSION:-latest} BUILD=${BUILD:-1} TAG=gwh @@ -31,6 +31,8 @@ git pull --all cp -R $REPOSITORY $TMP/ cd $TMP/$PRGNAM +[ "x$VERSION" == "xlatest" ] && VERSION=$(git for-each-ref --sort=taggerdate --format '%(tag)' | tail -n1) +[ "x$VERSION" == "x" ] && VERSION=trunk [ "x$VERSION" == "xtrunk" ] && VERSION="git_$(git log -1 --format=%h_%ad --date=format:%Y.%m.%d)" || git checkout $VERSION cargo build --release diff --git a/ap/motion/SlackBuild b/ap/motion/SlackBuild index 20922303..17df70bf 100755 --- a/ap/motion/SlackBuild +++ b/ap/motion/SlackBuild @@ -26,7 +26,7 @@ PRGNAM=motion GITHUB_REPO=Motion-Project/motion -VERSION=${VERSION:-$(curl -s https://api.github.com/repos/${GITHUB_REPO}/releases/latest | jq -r .tag_name | sed 's|^null$|trunk|')} # or VERSION=trunk +VERSION=${VERSION:-latest} BUILD=${BUILD:-1} TAG=${TAG:-gwh} @@ -67,6 +67,8 @@ git pull --all cp -R $REPOSITORY $PRGNAM cd $PRGNAM +[ "x$VERSION" == "xlatest" ] && VERSION=$(git for-each-ref --sort=taggerdate --format '%(tag)' | tail -n1) +[ "x$VERSION" == "x" ] && VERSION=trunk [ "x$VERSION" == "xtrunk" ] && VERSION="git_$(git log -1 --format=%h_%ad --date=format:%Y.%m.%d)" || git checkout $VERSION chown -R root:root . find -L . \ diff --git a/ap/nu/SlackBuild b/ap/nu/SlackBuild index 06bca74f..c588e7cc 100755 --- a/ap/nu/SlackBuild +++ b/ap/nu/SlackBuild @@ -2,7 +2,7 @@ # variables GITHUB_REPO=nushell/nushell -VERSION=${VERSION:-$(curl -s https://api.github.com/repos/${GITHUB_REPO}/releases/latest | jq -r .tag_name | sed 's|^null$|trunk|')} # or VERSION=trunk +VERSION=${VERSION:-latest} BUILD=${BUILD:-1} TAG=gwh @@ -31,6 +31,8 @@ git pull --all cp -R $REPOSITORY $TMP/ cd $TMP/$PRGNAM +[ "x$VERSION" == "xlatest" ] && VERSION=$(git for-each-ref --sort=taggerdate --format '%(tag)' | tail -n1) +[ "x$VERSION" == "x" ] && VERSION=trunk [ "x$VERSION" == "xtrunk" ] && VERSION="git_$(git log -1 --format=%h_%ad --date=format:%Y.%m.%d)" || git checkout $VERSION cargo build --release diff --git a/ap/procs/SlackBuild b/ap/procs/SlackBuild index 3f587f3a..0f0f96f6 100755 --- a/ap/procs/SlackBuild +++ b/ap/procs/SlackBuild @@ -2,7 +2,7 @@ # variables GITHUB_REPO=dalance/procs -VERSION=${VERSION:-$(curl -s https://api.github.com/repos/${GITHUB_REPO}/releases/latest | jq -r .tag_name | sed 's|^null$|trunk|')} # or VERSION=trunk +VERSION=${VERSION:-latest} BUILD=${BUILD:-1} TAG=gwh @@ -31,6 +31,8 @@ git pull --all cp -R $REPOSITORY $TMP/ cd $TMP/$PRGNAM +[ "x$VERSION" == "xlatest" ] && VERSION=$(git for-each-ref --sort=taggerdate --format '%(tag)' | tail -n1) +[ "x$VERSION" == "x" ] && VERSION=trunk [ "x$VERSION" == "xtrunk" ] && VERSION="git_$(git log -1 --format=%h_%ad --date=format:%Y.%m.%d)" || git checkout $VERSION cargo build --release diff --git a/ap/ripgrep/SlackBuild b/ap/ripgrep/SlackBuild index 01204623..ac3aa2a2 100755 --- a/ap/ripgrep/SlackBuild +++ b/ap/ripgrep/SlackBuild @@ -2,7 +2,7 @@ # variables GITHUB_REPO=BurntSushi/ripgrep -VERSION=${VERSION:-$(curl -s https://api.github.com/repos/${GITHUB_REPO}/releases/latest | jq -r .tag_name | sed 's|^null$|trunk|')} # or VERSION=trunk +VERSION=${VERSION:-latest} BUILD=${BUILD:-1} TAG=gwh @@ -31,6 +31,8 @@ git pull --all cp -R $REPOSITORY $TMP/ cd $TMP/$PRGNAM +[ "x$VERSION" == "xlatest" ] && VERSION=$(git for-each-ref --sort=taggerdate --format '%(tag)' | tail -n1) +[ "x$VERSION" == "x" ] && VERSION=trunk [ "x$VERSION" == "xtrunk" ] && VERSION="git_$(git log -1 --format=%h_%ad --date=format:%Y.%m.%d)" || git checkout $VERSION cargo build --release diff --git a/ap/rustup/SlackBuild b/ap/rustup/SlackBuild index e1af5c2a..42f326a1 100755 --- a/ap/rustup/SlackBuild +++ b/ap/rustup/SlackBuild @@ -2,7 +2,7 @@ # variables GITHUB_REPO=rust-lang/rustup -VERSION=${VERSION:-$(curl -s https://api.github.com/repos/${GITHUB_REPO}/releases/latest | jq -r .tag_name | sed 's|^null$|trunk|')} # or VERSION=trunk +VERSION=${VERSION:-latest} BUILD=${BUILD:-1} TAG=gwh @@ -31,6 +31,8 @@ git pull --all cp -R $REPOSITORY $TMP/ cd $TMP/$PRGNAM +[ "x$VERSION" == "xlatest" ] && VERSION=$(git for-each-ref --sort=taggerdate --format '%(tag)' | tail -n1) +[ "x$VERSION" == "x" ] && VERSION=trunk [ "x$VERSION" == "xtrunk" ] && VERSION="git_$(git log -1 --format=%h_%ad --date=format:%Y.%m.%d)" || git checkout $VERSION cargo build --release --features no-self-update diff --git a/ap/sd/SlackBuild b/ap/sd/SlackBuild index 889dc52e..4d0f2cc9 100755 --- a/ap/sd/SlackBuild +++ b/ap/sd/SlackBuild @@ -2,7 +2,7 @@ # variables GITHUB_REPO=chmln/sd -VERSION=${VERSION:-$(curl -s https://api.github.com/repos/${GITHUB_REPO}/releases/latest | jq -r .tag_name | sed 's|^null$|trunk|')} # or VERSION=trunk +VERSION=${VERSION:-latest} BUILD=${BUILD:-1} TAG=gwh @@ -31,6 +31,8 @@ git pull --all cp -R $REPOSITORY $TMP/ cd $TMP/$PRGNAM +[ "x$VERSION" == "xlatest" ] && VERSION=$(git for-each-ref --sort=taggerdate --format '%(tag)' | tail -n1) +[ "x$VERSION" == "x" ] && VERSION=trunk [ "x$VERSION" == "xtrunk" ] && VERSION="git_$(git log -1 --format=%h_%ad --date=format:%Y.%m.%d)" || git checkout $VERSION cargo build --release diff --git a/ap/starship/SlackBuild b/ap/starship/SlackBuild index 10105c34..9aa1dd35 100755 --- a/ap/starship/SlackBuild +++ b/ap/starship/SlackBuild @@ -2,7 +2,7 @@ # variables GITHUB_REPO=starship/starship -VERSION=${VERSION:-$(curl -s https://api.github.com/repos/${GITHUB_REPO}/releases/latest | jq -r .tag_name | sed 's|^null$|trunk|')} # or VERSION=trunk +VERSION=${VERSION:-latest} BUILD=${BUILD:-1} TAG=gwh @@ -31,6 +31,8 @@ git pull --all cp -R $REPOSITORY $TMP/ cd $TMP/$PRGNAM +[ "x$VERSION" == "xlatest" ] && VERSION=$(git for-each-ref --sort=taggerdate --format '%(tag)' | tail -n1) +[ "x$VERSION" == "x" ] && VERSION=trunk [ "x$VERSION" == "xtrunk" ] && VERSION="git_$(git log -1 --format=%h_%ad --date=format:%Y.%m.%d)" || git checkout $VERSION cargo build --release diff --git a/ap/stow/SlackBuild b/ap/stow/SlackBuild index 0687ddb8..ccd299b5 100755 --- a/ap/stow/SlackBuild +++ b/ap/stow/SlackBuild @@ -30,6 +30,8 @@ git pull --all cp -R $REPOSITORY $TMP/ cd $TMP/$PRGNAM +[ "x$VERSION" == "xlatest" ] && VERSION=$(git for-each-ref --sort=taggerdate --format '%(tag)' | tail -n1) +[ "x$VERSION" == "x" ] && VERSION=trunk [ "x$VERSION" == "xtrunk" ] && VERSION="git_$(git log -1 --format=%h_%ad --date=format:%Y.%m.%d)" || git checkout $VERSION autoconf diff --git a/ap/tldr/SlackBuild b/ap/tldr/SlackBuild index f3a6970e..09fa100d 100755 --- a/ap/tldr/SlackBuild +++ b/ap/tldr/SlackBuild @@ -2,7 +2,7 @@ # variables GITHUB_REPO=dbrgn/tealdeer -VERSION=${VERSION:-$(curl -s https://api.github.com/repos/${GITHUB_REPO}/releases/latest | jq -r .tag_name | sed 's|^null$|trunk|')} # or VERSION=trunk +VERSION=${VERSION:-latest} BUILD=${BUILD:-1} TAG=gwh @@ -31,6 +31,8 @@ git pull --all cp -R $REPOSITORY $TMP/ cd $TMP/$PRGNAM +[ "x$VERSION" == "xlatest" ] && VERSION=$(git for-each-ref --sort=taggerdate --format '%(tag)' | tail -n1) +[ "x$VERSION" == "x" ] && VERSION=trunk [ "x$VERSION" == "xtrunk" ] && VERSION="git_$(git log -1 --format=%h_%ad --date=format:%Y.%m.%d)" || git checkout $VERSION cargo build --release diff --git a/ap/tv/SlackBuild b/ap/tv/SlackBuild index b898f7e7..62fef213 100755 --- a/ap/tv/SlackBuild +++ b/ap/tv/SlackBuild @@ -2,7 +2,7 @@ # variables GITHUB_REPO=alexhallam/tv -VERSION=${VERSION:-$(curl -s https://api.github.com/repos/${GITHUB_REPO}/releases/latest | jq -r .tag_name | sed 's|^null$|trunk|')} # or VERSION=trunk +VERSION=${VERSION:-latest} BUILD=${BUILD:-1} TAG=gwh @@ -31,6 +31,8 @@ git pull --all cp -R $REPOSITORY $TMP/ cd $TMP/$PRGNAM +[ "x$VERSION" == "xlatest" ] && VERSION=$(git for-each-ref --sort=taggerdate --format '%(tag)' | tail -n1) +[ "x$VERSION" == "x" ] && VERSION=trunk [ "x$VERSION" == "xtrunk" ] && VERSION="git_$(git log -1 --format=%h_%ad --date=format:%Y.%m.%d)" || git checkout $VERSION cargo build --release diff --git a/ap/viu/SlackBuild b/ap/viu/SlackBuild index ee2cc9dd..675bb025 100755 --- a/ap/viu/SlackBuild +++ b/ap/viu/SlackBuild @@ -2,7 +2,7 @@ # variables GITHUB_REPO=atanunq/viu -VERSION=${VERSION:-$(curl -s https://api.github.com/repos/${GITHUB_REPO}/releases/latest | jq -r .tag_name | sed 's|^null$|trunk|')} # or VERSION=trunk +VERSION=${VERSION:-latest} BUILD=${BUILD:-1} TAG=gwh @@ -31,6 +31,8 @@ git pull --all cp -R $REPOSITORY $TMP/ cd $TMP/$PRGNAM +[ "x$VERSION" == "xlatest" ] && VERSION=$(git for-each-ref --sort=taggerdate --format '%(tag)' | tail -n1) +[ "x$VERSION" == "x" ] && VERSION=trunk [ "x$VERSION" == "xtrunk" ] && VERSION="git_$(git log -1 --format=%h_%ad --date=format:%Y.%m.%d)" || git checkout $VERSION cargo build --release diff --git a/ap/ycmd/SlackBuild b/ap/ycmd/SlackBuild index 50189c29..d4693713 100755 --- a/ap/ycmd/SlackBuild +++ b/ap/ycmd/SlackBuild @@ -2,7 +2,7 @@ # variables GITHUB_REPO=Valloric/ycmd -VERSION=${VERSION:-$(curl -s https://api.github.com/repos/${GITHUB_REPO}/releases/latest | jq -r .tag_name | sed 's|^null$|trunk|')} # or VERSION=trunk +VERSION=${VERSION:-latest} BUILD=${BUILD:-1} TAG=gwh @@ -31,6 +31,8 @@ git pull --all cp -R $REPOSITORY $TMP/ cd $TMP/$PRGNAM +[ "x$VERSION" == "xlatest" ] && VERSION=$(git for-each-ref --sort=taggerdate --format '%(tag)' | tail -n1) +[ "x$VERSION" == "x" ] && VERSION=trunk [ "x$VERSION" == "xtrunk" ] && VERSION="git_$(git log -1 --format=%h_%ad --date=format:%Y.%m.%d)" || git checkout $VERSION git submodule update --init --recursive diff --git a/ap/ytop/SlackBuild b/ap/ytop/SlackBuild index e69e15f8..152f8bad 100755 --- a/ap/ytop/SlackBuild +++ b/ap/ytop/SlackBuild @@ -2,7 +2,7 @@ # variables GITHUB_REPO=cjbassi/ytop -VERSION=${VERSION:-$(curl -s https://api.github.com/repos/${GITHUB_REPO}/releases/latest | jq -r .tag_name | sed 's|^null$|trunk|')} # or VERSION=trunk +VERSION=${VERSION:-latest} BUILD=${BUILD:-1} TAG=gwh @@ -31,6 +31,8 @@ git pull --all cp -R $REPOSITORY $TMP/ cd $TMP/$PRGNAM +[ "x$VERSION" == "xlatest" ] && VERSION=$(git for-each-ref --sort=taggerdate --format '%(tag)' | tail -n1) +[ "x$VERSION" == "x" ] && VERSION=trunk [ "x$VERSION" == "xtrunk" ] && VERSION="git_$(git log -1 --format=%h_%ad --date=format:%Y.%m.%d)" || git checkout $VERSION cargo build --release diff --git a/d/ameba/SlackBuild b/d/ameba/SlackBuild index 09fe557a..3830c3cf 100755 --- a/d/ameba/SlackBuild +++ b/d/ameba/SlackBuild @@ -5,7 +5,7 @@ CWD=$(pwd) PRGNAM=$(basename $CWD) GITHUB_REPO=crystal-ameba/ameba -VERSION=${VERSION:-$(curl -s https://api.github.com/repos/${GITHUB_REPO}/releases/latest | jq -r .tag_name | sed 's|^null$|trunk|')} # or VERSION=trunk +VERSION=${VERSION:-latest} ARCH=${ARCH:-$(uname -m)} BUILD=1 @@ -31,6 +31,8 @@ cd $TMP cp -R $REPOSITORY $TMP/$PRGNAM cd $TMP/$PRGNAM +[ "x$VERSION" == "xlatest" ] && VERSION=$(git for-each-ref --sort=taggerdate --format '%(tag)' | tail -n1) +[ "x$VERSION" == "x" ] && VERSION=trunk [ "x$VERSION" == "xtrunk" ] && VERSION="git_$(git log -1 --format=%h_%ad --date=format:%Y.%m.%d)" || git checkout $VERSION # compilation diff --git a/d/chruby/SlackBuild b/d/chruby/SlackBuild index e14daf68..fa74b41c 100755 --- a/d/chruby/SlackBuild +++ b/d/chruby/SlackBuild @@ -12,7 +12,7 @@ PKG=$TMP/pkg-$PRGNAM REPOSITORY=/home/installs/SlackBuilds/repositories/$PRGNAM GITHUB_REPO=postmodern/chruby -VERSION=${VERSION:-$(curl -s https://api.github.com/repos/${GITHUB_REPO}/releases/latest | jq -r .tag_name | sed 's|^null$|trunk|')} # or VERSION=trunk +VERSION=${VERSION:-latest} ARCH='noarch' BUILD=1 @@ -34,6 +34,8 @@ rm -fr $PKG $TMP/$PRGNAM cp -R $REPOSITORY $TMP/$PRGNAM cd $TMP/$PRGNAM +[ "x$VERSION" == "xlatest" ] && VERSION=$(git for-each-ref --sort=taggerdate --format '%(tag)' | tail -n1) +[ "x$VERSION" == "x" ] && VERSION=trunk [ "x$VERSION" == "xtrunk" ] && VERSION="git_$(git log -1 --format=%h_%ad --date=format:%Y.%m.%d)" || git checkout $VERSION # compilation diff --git a/d/crystal/SlackBuild b/d/crystal/SlackBuild index 610bb9ea..c9e3ea10 100755 --- a/d/crystal/SlackBuild +++ b/d/crystal/SlackBuild @@ -6,7 +6,7 @@ CWD=$(pwd) PRGNAM=$(basename $CWD) ARCH=$(uname -m) GITHUB_REPO=crystal-lang/crystal -VERSION=${VERSION:-$(curl -s https://api.github.com/repos/${GITHUB_REPO}/releases/latest | jq -r .tag_name | sed 's|^null$|trunk|')} # or VERSION=trunk +VERSION=${VERSION:-latest} REPOSITORY=${REPOSITORY:-/home/installs/SlackBuilds/repositories/$PRGNAM} BUILD=1 @@ -28,6 +28,8 @@ git pull --all cp -R $REPOSITORY $TMP/ cd $TMP/$PRGNAM/ +[ "x$VERSION" == "xlatest" ] && VERSION=$(git for-each-ref --sort=taggerdate --format '%(tag)' | tail -n1) +[ "x$VERSION" == "x" ] && VERSION=trunk [ "x$VERSION" == "xtrunk" ] && VERSION="git_$(git log -1 --format=%h_%ad --date=format:%Y.%m.%d)" || git checkout $VERSION make -j$(nproc) interpreter=1 release=1 @@ -57,6 +59,8 @@ git pull --all cp -R $SHARDS_REPOSITORY $TMP/ cd $TMP/$SHARDS_PRGNAM/ +[ "x$SHARDS_VERSION" == "xlatest" ] && SHARDS_VERSION=$(git for-each-ref --sort=taggerdate --format '%(tag)' | tail -n1) +[ "x$SHARDS_VERSION" == "x" ] && SHARDS_VERSION=trunk [ "x$SHARDS_VERSION" == "xtrunk" ] && SHARDS_VERSION="git_$(git log -1 --format=%h_%ad --date=format:%Y.%m.%d)" || git checkout $SHARDS_VERSION make -j$(nproc) release=1 diff --git a/d/dtc/SlackBuild b/d/dtc/SlackBuild index a2655de6..2a16045e 100755 --- a/d/dtc/SlackBuild +++ b/d/dtc/SlackBuild @@ -30,6 +30,8 @@ git pull --all cp -R $REPOSITORY $TMP/ cd $TMP/$PRGNAM +[ "x$VERSION" == "xlatest" ] && VERSION=$(git for-each-ref --sort=taggerdate --format '%(tag)' | tail -n1) +[ "x$VERSION" == "x" ] && VERSION=trunk [ "x$VERSION" == "xtrunk" ] && VERSION="git_$(git log -1 --format=%h_%ad --date=format:%Y.%m.%d)" || git checkout $VERSION make diff --git a/d/factor/SlackBuild b/d/factor/SlackBuild index ddc12534..cd328a50 100755 --- a/d/factor/SlackBuild +++ b/d/factor/SlackBuild @@ -29,6 +29,8 @@ cd $TMP [ -e $TMP/$PRGNAM ] && rm -fr $TMP/$PRGNAM cp -R $REPOSITORY $TMP/$PRGNAM cd $TMP/$PRGNAM +[ "x$VERSION" == "xlatest" ] && VERSION=$(git for-each-ref --sort=taggerdate --format '%(tag)' | tail -n1) +[ "x$VERSION" == "x" ] && VERSION=trunk [ "x$VERSION" == "xtrunk" ] && VERSION="git_$(git log -1 --format=%h_%ad --date=format:%Y.%m.%d)" || git checkout $VERSION ./build.sh update diff --git a/d/gforth/SlackBuild b/d/gforth/SlackBuild index c8828a01..d474d32b 100755 --- a/d/gforth/SlackBuild +++ b/d/gforth/SlackBuild @@ -30,6 +30,8 @@ cd $TMP cp -R $REPOSITORY $TMP/$PRGNAM-$VERSION cd $TMP/$PRGNAM-$VERSION +[ "x$VERSION" == "xlatest" ] && VERSION=$(git for-each-ref --sort=taggerdate --format '%(tag)' | tail -n1) +[ "x$VERSION" == "x" ] && VERSION=trunk [ "x$VERSION" == "xtrunk" ] && VERSION="git_$(git log -1 --format=%h_%ad --date=format:%Y.%m.%d)" || git checkout $VERSION # configuration diff --git a/d/newrpl/SlackBuild b/d/newrpl/SlackBuild index 98c6834c..f3c0d75e 100755 --- a/d/newrpl/SlackBuild +++ b/d/newrpl/SlackBuild @@ -32,6 +32,8 @@ git pull --all cp -R $REPOSITORY $TMP/ cd $TMP/$PRGNAM/ +[ "x$VERSION" == "xlatest" ] && VERSION=$(git for-each-ref --sort=taggerdate --format '%(tag)' | tail -n1) +[ "x$VERSION" == "x" ] && VERSION=trunk [ "x$VERSION" == "xtrunk" ] && VERSION="$(git rev-list --count master)_git_$(git log -1 --format=%h_%ad --date=format:%Y.%m.%d)" || git checkout $VERSION # https://www.hpmuseum.org/forum/thread-17667-post-154012.html#pid154012 diff --git a/d/nodejs-bin/SlackBuild b/d/nodejs-bin/SlackBuild index 6729bb10..2ee3c521 100755 --- a/d/nodejs-bin/SlackBuild +++ b/d/nodejs-bin/SlackBuild @@ -28,7 +28,7 @@ PRGNAM=nodejs-bin SRCNAM=node GITHUB_REPO=nodejs/node -VERSION=${VERSION:-$(curl -s https://api.github.com/repos/${GITHUB_REPO}/releases/latest | jq -r .tag_name | sed 's|^null$|trunk|')} # or VERSION=trunk +VERSION=${VERSION:-latest} BUILD=${BUILD:-1} TAG=${TAG:-gwh} diff --git a/d/rbspy/SlackBuild b/d/rbspy/SlackBuild index ba5e385f..25173d53 100755 --- a/d/rbspy/SlackBuild +++ b/d/rbspy/SlackBuild @@ -2,7 +2,7 @@ # variables GITHUB_REPO=rbspy/rbspy -VERSION=${VERSION:-$(curl -s https://api.github.com/repos/${GITHUB_REPO}/releases/latest | jq -r .tag_name | sed 's|^null$|trunk|')} # or VERSION=trunk +VERSION=${VERSION:-latest} BUILD=${BUILD:-1} TAG=gwh @@ -31,6 +31,8 @@ git pull --all cp -R $REPOSITORY $TMP/ cd $TMP/$PRGNAM +[ "x$VERSION" == "xlatest" ] && VERSION=$(git for-each-ref --sort=taggerdate --format '%(tag)' | tail -n1) +[ "x$VERSION" == "x" ] && VERSION=trunk [ "x$VERSION" == "xtrunk" ] && VERSION="git_$(git log -1 --format=%h_%ad --date=format:%Y.%m.%d)" || git checkout $VERSION cargo build --release diff --git a/d/retro/SlackBuild b/d/retro/SlackBuild index 8a7a3f7e..8fd2c08a 100755 --- a/d/retro/SlackBuild +++ b/d/retro/SlackBuild @@ -29,6 +29,8 @@ cd $TMP cp -R $REPOSITORY $TMP/$PRGNAM cd $TMP/$PRGNAM +[ "x$VERSION" == "xlatest" ] && VERSION=$(git for-each-ref --sort=taggerdate --format '%(tag)' | tail -n1) +[ "x$VERSION" == "x" ] && VERSION=trunk [ "x$VERSION" == "xtrunk" ] && VERSION="git_$(git log -1 --format=%h_%ad --date=format:%Y.%m.%d)" || git checkout $VERSION make PREFIX=$PREFIX diff --git a/d/rpn/SlackBuild b/d/rpn/SlackBuild index fa158a0f..06936c85 100755 --- a/d/rpn/SlackBuild +++ b/d/rpn/SlackBuild @@ -5,7 +5,7 @@ CWD=$(pwd) PRGNAM=$(basename $CWD) GITHUB_REPO=louisrubet/rpn -VERSION=${VERSION:-$(curl -s https://api.github.com/repos/${GITHUB_REPO}/releases/latest | jq -r .tag_name | sed 's|^null$|trunk|')} # or VERSION=trunk +VERSION=${VERSION:-latest} ARCH=${ARCH:-$(uname -m)} BUILD=1 @@ -31,6 +31,8 @@ cd $TMP cp -R $REPOSITORY $TMP/$PRGNAM-$VERSION cd $TMP/$PRGNAM-$VERSION +[ "x$VERSION" == "xlatest" ] && VERSION=$(git for-each-ref --sort=taggerdate --format '%(tag)' | tail -n1) +[ "x$VERSION" == "x" ] && VERSION=trunk [ "x$VERSION" == "xtrunk" ] && VERSION="git_$(git log -1 --format=%h_%ad --date=format:%Y.%m.%d)" || git checkout $VERSION sed -i 's|git@github.com:|https://github.com/|g' $(grep -l git@ .*) diff --git a/d/ruby-install/SlackBuild b/d/ruby-install/SlackBuild index e859e6ce..7951c494 100755 --- a/d/ruby-install/SlackBuild +++ b/d/ruby-install/SlackBuild @@ -2,7 +2,7 @@ # variables GITHUB_REPO=${GITHUB_REPO} -VERSION=${VERSION:-$(curl -s https://api.github.com/repos/${GITHUB_REPO}/releases/latest | jq -r .tag_name | sed 's|^null$|trunk|')} # or VERSION=trunk +VERSION=${VERSION:-latest} TAG=gwh TMP=/tmp/$TAG @@ -31,6 +31,8 @@ rm -fr $PKG $TMP/$PRGNAM cp -R $REPOSITORY $TMP/$PRGNAM cd $TMP/$PRGNAM +[ "x$VERSION" == "xlatest" ] && VERSION=$(git for-each-ref --sort=taggerdate --format '%(tag)' | tail -n1) +[ "x$VERSION" == "x" ] && VERSION=trunk [ "x$VERSION" == "xtrunk" ] && VERSION="git_$(git log -1 --format=%h_%ad --date=format:%Y.%m.%d)" || git checkout $VERSION # compilation diff --git a/d/scry/SlackBuild b/d/scry/SlackBuild index 7010f386..9f95c33b 100755 --- a/d/scry/SlackBuild +++ b/d/scry/SlackBuild @@ -5,7 +5,7 @@ CWD=$(pwd) PRGNAM=$(basename $CWD) GITHUB_REPO=crystal-lang-tools/scry -VERSION=${VERSION:-$(curl -s https://api.github.com/repos/${GITHUB_REPO}/releases/latest | jq -r .tag_name | sed 's|^null$|trunk|')} # or VERSION=trunk +VERSION=${VERSION:-latest} ARCH=${ARCH:-$(uname -m)} BUILD=1 @@ -31,6 +31,8 @@ cd $TMP cp -R $REPOSITORY $TMP/$PRGNAM-$VERSION cd $TMP/$PRGNAM-$VERSION +[ "x$VERSION" == "xlatest" ] && VERSION=$(git for-each-ref --sort=taggerdate --format '%(tag)' | tail -n1) +[ "x$VERSION" == "x" ] && VERSION=trunk [ "x$VERSION" == "xtrunk" ] && VERSION="git_$(git log -1 --format=%h_%ad --date=format:%Y.%m.%d)" || git checkout $VERSION sed -i 's|Errno|File::Error|g' src/scry/text_document.cr diff --git a/d/scryer-prolog/SlackBuild b/d/scryer-prolog/SlackBuild index 18a1f146..d3be7713 100755 --- a/d/scryer-prolog/SlackBuild +++ b/d/scryer-prolog/SlackBuild @@ -2,7 +2,7 @@ # variables GITHUB_REPO=mthom/scryer-prolog -VERSION=${VERSION:-$(curl -s https://api.github.com/repos/${GITHUB_REPO}/releases/latest | jq -r .tag_name | sed 's|^null$|trunk|')} # or VERSION=trunk +VERSION=${VERSION:-latest} BUILD=${BUILD:-1} TAG=gwh @@ -31,6 +31,8 @@ git pull --all cp -R $REPOSITORY $TMP/ cd $TMP/$PRGNAM +[ "x$VERSION" == "xlatest" ] && VERSION=$(git for-each-ref --sort=taggerdate --format '%(tag)' | tail -n1) +[ "x$VERSION" == "x" ] && VERSION=trunk [ "x$VERSION" == "xtrunk" ] && VERSION="git_$(git log -1 --format=%h_%ad --date=format:%Y.%m.%d)" || git checkout $VERSION cargo build --release diff --git a/d/wabt/SlackBuild b/d/wabt/SlackBuild index 75cc3634..b92a1f42 100755 --- a/d/wabt/SlackBuild +++ b/d/wabt/SlackBuild @@ -5,7 +5,7 @@ CWD=$(pwd) PRGNAM=$(basename $CWD) GITHUB_REPO=WebAssembly/wabt -VERSION=${VERSION:-$(curl -s https://api.github.com/repos/${GITHUB_REPO}/releases/latest | jq -r .tag_name | sed 's|^null$|trunk|')} # or VERSION=trunk +VERSION=${VERSION:-latest} ARCH=${ARCH:-$(uname -m)} BUILD=1 @@ -31,6 +31,8 @@ cd $TMP cp -R $REPOSITORY $TMP/$PRGNAM-$VERSION cd $TMP/$PRGNAM-$VERSION +[ "x$VERSION" == "xlatest" ] && VERSION=$(git for-each-ref --sort=taggerdate --format '%(tag)' | tail -n1) +[ "x$VERSION" == "x" ] && VERSION=trunk [ "x$VERSION" == "xtrunk" ] && VERSION="git_$(git log -1 --format=%h_%ad --date=format:%Y.%m.%d)" || git checkout $VERSION # configuration diff --git a/l/apcu/SlackBuild b/l/apcu/SlackBuild index 66169b46..b9c4f83b 100755 --- a/l/apcu/SlackBuild +++ b/l/apcu/SlackBuild @@ -10,7 +10,7 @@ PRGNAM=$(basename $CWD) PKG=$TMP/pkg-$PRGNAM GITHUB_REPO=krakjoe/apcu -VERSION=${VERSION:-$(curl -s https://api.github.com/repos/${GITHUB_REPO}/releases/latest | jq -r .tag_name | sed 's|^null$|trunk|')} # or VERSION=trunk +VERSION=${VERSION:-latest} EXT=tar.gz @@ -37,6 +37,8 @@ git pull --all cp -R $REPOSITORY $PRGNAM cd $PRGNAM +[ "x$VERSION" == "xlatest" ] && VERSION=$(git for-each-ref --sort=taggerdate --format '%(tag)' | tail -n1) +[ "x$VERSION" == "x" ] && VERSION=trunk [ "x$VERSION" == "xtrunk" ] && VERSION="git_$(git log -1 --format=%h_%ad --date=format:%Y.%m.%d)" || git checkout $VERSION # configuration diff --git a/l/basu/SlackBuild b/l/basu/SlackBuild index 0bcbed94..03e74284 100755 --- a/l/basu/SlackBuild +++ b/l/basu/SlackBuild @@ -2,7 +2,7 @@ # variables GITHUB_REPO=emersion/basu -VERSION=${VERSION:-$(curl -s https://api.github.com/repos/${GITHUB_REPO}/releases/latest | jq -r .tag_name | sed 's|^null$|trunk|')} # or VERSION=trunk +VERSION=${VERSION:-latest} BUILD=1 TAG=gwh @@ -31,6 +31,8 @@ git pull --all cp -R $REPOSITORY $TMP/ cd $TMP/$PRGNAM/ +[ "x$VERSION" == "xlatest" ] && VERSION=$(git for-each-ref --sort=taggerdate --format '%(tag)' | tail -n1) +[ "x$VERSION" == "x" ] && VERSION=trunk [ "x$VERSION" == "xtrunk" ] && VERSION="git_$( cd $REPOSITORY && git log -1 --format=%h_%ad --date=format:%Y.%m.%d )" || git checkout $VERSION meson build/ diff --git a/l/fmt/SlackBuild b/l/fmt/SlackBuild index 47312e73..faa5aaba 100755 --- a/l/fmt/SlackBuild +++ b/l/fmt/SlackBuild @@ -5,7 +5,7 @@ CWD=$(pwd) PRGNAM=$(basename $CWD) GITHUB_REPO=fmtlib/fmt -VERSION=${VERSION:-$(curl -s https://api.github.com/repos/${GITHUB_REPO}/releases/latest | jq -r .tag_name | sed 's|^null$|trunk|')} # or VERSION=trunk +VERSION=${VERSION:-latest} ARCH=${ARCH:-$(uname -m)} BUILD=1 @@ -31,6 +31,8 @@ cd $TMP cp -R $REPOSITORY $TMP/$PRGNAM cd $TMP/$PRGNAM +[ "x$VERSION" == "xlatest" ] && VERSION=$(git for-each-ref --sort=taggerdate --format '%(tag)' | tail -n1) +[ "x$VERSION" == "x" ] && VERSION=trunk [ "x$VERSION" == "xtrunk" ] && VERSION="git_$(git log -1 --format=%h_%ad --date=format:%Y.%m.%d)" || git checkout $VERSION # configuration diff --git a/l/hinnant-date/SlackBuild b/l/hinnant-date/SlackBuild index 0d23d317..361f2f9f 100755 --- a/l/hinnant-date/SlackBuild +++ b/l/hinnant-date/SlackBuild @@ -7,7 +7,7 @@ CWD=$(pwd) PRGNAM=$(basename $CWD) GITHUB_REPO=HowardHinnant/date -VERSION=${VERSION:-$(curl -s https://api.github.com/repos/${GITHUB_REPO}/releases/latest | jq -r .tag_name | sed 's|^null$|trunk|')} # or VERSION=trunk +VERSION=${VERSION:-latest} ARCH=${ARCH:-$(uname -m)} BUILD=1 @@ -36,6 +36,8 @@ git pull --all cp -R $REPOSITORY $TMP/$PRGNAM cd $TMP/$PRGNAM +[ "x$VERSION" == "xlatest" ] && VERSION=$(git for-each-ref --sort=taggerdate --format '%(tag)' | tail -n1) +[ "x$VERSION" == "x" ] && VERSION=trunk [ "x$VERSION" == "xtrunk" ] && VERSION="git_$( cd $REPOSITORY && git log -1 --format=%h_%ad --date=format:%Y.%m.%d )" || git checkout $VERSION # configuration diff --git a/l/libucl/SlackBuild b/l/libucl/SlackBuild index 4116842c..cfa36e78 100755 --- a/l/libucl/SlackBuild +++ b/l/libucl/SlackBuild @@ -7,7 +7,7 @@ CWD=$(pwd) PRGNAM=$(basename $CWD) GITHUB_REPO=vstakhov/libucl -VERSION=${VERSION:-$(curl -s https://api.github.com/repos/${GITHUB_REPO}/releases/latest | jq -r .tag_name | sed 's|^null$|trunk|')} # or VERSION=trunk +VERSION=${VERSION:-latest} ARCH=${ARCH:-$(uname -m)} BUILD=1 @@ -36,6 +36,8 @@ git pull --all cp -R $REPOSITORY $TMP/$PRGNAM cd $TMP/$PRGNAM +[ "x$VERSION" == "xlatest" ] && VERSION=$(git for-each-ref --sort=taggerdate --format '%(tag)' | tail -n1) +[ "x$VERSION" == "x" ] && VERSION=trunk [ "x$VERSION" == "xtrunk" ] && VERSION="git_$(git log -1 --format=%h_%ad --date=format:%Y.%m.%d)" || git checkout $VERSION # configuration diff --git a/l/python-cairo-cffi/SlackBuild b/l/python-cairo-cffi/SlackBuild index ba5a7ba6..d010dcb7 100755 --- a/l/python-cairo-cffi/SlackBuild +++ b/l/python-cairo-cffi/SlackBuild @@ -34,6 +34,8 @@ git pull --all cp -R $REPOSITORY $TMP/$PRGNAM cd $TMP/$PRGNAM +[ "x$VERSION" == "xlatest" ] && VERSION=$(git for-each-ref --sort=taggerdate --format '%(tag)' | tail -n1) +[ "x$VERSION" == "x" ] && VERSION=trunk [ "x$VERSION" == "xtrunk" ] && VERSION="git_$(git log -1 --format=%h_%ad --date=format:%Y.%m.%d)" || git checkout $VERSION # installation diff --git a/l/pywlroots/git.SlackBuild b/l/pywlroots/git.SlackBuild index f6904565..eff152d5 100755 --- a/l/pywlroots/git.SlackBuild +++ b/l/pywlroots/git.SlackBuild @@ -34,6 +34,8 @@ git pull --all cp -R $REPOSITORY $TMP/$PRGNAM cd $TMP/$PRGNAM +[ "x$VERSION" == "xlatest" ] && VERSION=$(git for-each-ref --sort=taggerdate --format '%(tag)' | tail -n1) +[ "x$VERSION" == "x" ] && VERSION=trunk [ "x$VERSION" == "xtrunk" ] && VERSION="git_$(git log -1 --format=%h_%ad --date=format:%Y.%m.%d)" || git checkout $VERSION # installation diff --git a/l/raylib/SlackBuild b/l/raylib/SlackBuild index 4296ea07..c95f2b6a 100755 --- a/l/raylib/SlackBuild +++ b/l/raylib/SlackBuild @@ -2,7 +2,7 @@ # variables GITHUB_REPO=raysan5/raylib -VERSION=${VERSION:-$(curl -s https://api.github.com/repos/${GITHUB_REPO}/releases/latest | jq -r .tag_name | sed 's|^null$|trunk|')} # or VERSION=trunk +VERSION=${VERSION:-latest} BUILD=1 TAG=gwh @@ -34,6 +34,8 @@ git pull --all cp -R $REPOSITORY $TMP/ cd $TMP/$PRGNAM +[ "x$VERSION" == "xlatest" ] && VERSION=$(git for-each-ref --sort=taggerdate --format '%(tag)' | tail -n1) +[ "x$VERSION" == "x" ] && VERSION=trunk [ "x$VERSION" == "xtrunk" ] && VERSION="git_$(git log -1 --format=%h_%ad --date=format:%Y.%m.%d)" || git checkout $VERSION cd src diff --git a/l/spdlog/SlackBuild b/l/spdlog/SlackBuild index 2f241533..6197c87c 100755 --- a/l/spdlog/SlackBuild +++ b/l/spdlog/SlackBuild @@ -5,7 +5,7 @@ CWD=$(pwd) PRGNAM=$(basename $CWD) GITHUB_REPO=gabime/spdlog -VERSION=${VERSION:-$(curl -s https://api.github.com/repos/${GITHUB_REPO}/releases/latest | jq -r .tag_name | sed 's|^null$|trunk|')} # or VERSION=trunk +VERSION=${VERSION:-latest} ARCH=${ARCH:-$(uname -m)} BUILD=1 @@ -32,6 +32,8 @@ cd $TMP cp -R $REPOSITORY $TMP/$PRGNAM cd $TMP/$PRGNAM +[ "x$VERSION" == "xlatest" ] && VERSION=$(git for-each-ref --sort=taggerdate --format '%(tag)' | tail -n1) +[ "x$VERSION" == "x" ] && VERSION=trunk [ "x$VERSION" == "xtrunk" ] && VERSION="git_$(git log -1 --format=%h_%ad --date=format:%Y.%m.%d)" || git checkout $VERSION # configuration diff --git a/l/xkbcommon/git.SlackBuild b/l/xkbcommon/git.SlackBuild index 128d7f0e..5c70488b 100755 --- a/l/xkbcommon/git.SlackBuild +++ b/l/xkbcommon/git.SlackBuild @@ -34,6 +34,8 @@ git pull --all cp -R $REPOSITORY $TMP/$PRGNAM cd $TMP/$PRGNAM +[ "x$VERSION" == "xlatest" ] && VERSION=$(git for-each-ref --sort=taggerdate --format '%(tag)' | tail -n1) +[ "x$VERSION" == "x" ] && VERSION=trunk [ "x$VERSION" == "xtrunk" ] && VERSION="git_$(git log -1 --format=%h_%ad --date=format:%Y.%m.%d)" || git checkout $VERSION # installation diff --git a/lua/awesome/SlackBuild b/lua/awesome/SlackBuild index 6f80b068..8854cf98 100755 --- a/lua/awesome/SlackBuild +++ b/lua/awesome/SlackBuild @@ -5,7 +5,7 @@ CWD=$(pwd) PRGNAM=awesome GITHUB_REPO=awesomeWM/awesome -VERSION=${VERSION:-$(curl -s https://api.github.com/repos/${GITHUB_REPO}/releases/latest | jq -r .tag_name | sed 's|^null$|trunk|')} # or VERSION=trunk +VERSION=${VERSION:-latest} ARCH=${ARCH:-$(uname -m)} BUILD=1 diff --git a/lua/lgi/SlackBuild b/lua/lgi/SlackBuild index f30ef442..c8d9f383 100755 --- a/lua/lgi/SlackBuild +++ b/lua/lgi/SlackBuild @@ -3,7 +3,7 @@ CWD=$(pwd) GITHUB_REPO=pavouk/lgi -VERSION=${VERSION:-$(curl -s https://api.github.com/repos/${GITHUB_REPO}/releases/latest | jq -r .tag_name | sed 's|^null$|trunk|')} # or VERSION=trunk +VERSION=${VERSION:-latest} # default settings PRGNAM=$(basename $CWD) diff --git a/lua/luarocks/SlackBuild b/lua/luarocks/SlackBuild index 52303ff8..62c534b2 100755 --- a/lua/luarocks/SlackBuild +++ b/lua/luarocks/SlackBuild @@ -38,6 +38,8 @@ cd $TMP cp -R $REPOSITORIES/$PRGNAM $TMP/$PRGNAM cd $PRGNAM +[ "x$VERSION" == "xlatest" ] && VERSION=$(git for-each-ref --sort=taggerdate --format '%(tag)' | tail -n1) +[ "x$VERSION" == "x" ] && VERSION=trunk [ "x$VERSION" == "xtrunk" ] && VERSION="git_$(git log -1 --format=%h_%ad --date=format:%Y.%m.%d)" || git checkout $VERSION # configuration diff --git a/n/calibre-web/SlackBuild b/n/calibre-web/SlackBuild index 5184489d..e0952185 100755 --- a/n/calibre-web/SlackBuild +++ b/n/calibre-web/SlackBuild @@ -2,7 +2,7 @@ # variables GITHUB_REPO=janeczku/calibre-web -VERSION=${VERSION:-$(curl -s https://api.github.com/repos/${GITHUB_REPO}/releases/latest | jq -r .tag_name | sed 's|^null$|trunk|')} # or VERSION=trunk +VERSION=${VERSION:-latest} RUNNING_USER=${RUNNING_USER:-gwh} RUNNING_GROUP=${RUNNING_GROUP:-users} @@ -41,6 +41,8 @@ cp -r $CWD/rc $PKG/etc/rc.d/rc.$PRGNAM sed -i "s|RUNNING_USER|$RUNNING_USER|" $PKG/etc/rc.d/rc.$PRGNAM cd $PKG/opt/$PRGNAM +[ "x$VERSION" == "xlatest" ] && VERSION=$(git for-each-ref --sort=taggerdate --format '%(tag)' | tail -n1) +[ "x$VERSION" == "x" ] && VERSION=trunk [ "x$VERSION" == "xtrunk" ] && VERSION="git_$(git log -1 --format=%h_%ad --date=format:%Y.%m.%d)" || git checkout $VERSION # change default password diff --git a/n/pluxml/SlackBuild b/n/pluxml/SlackBuild index 0c4bc698..c0a8d3f0 100755 --- a/n/pluxml/SlackBuild +++ b/n/pluxml/SlackBuild @@ -3,7 +3,7 @@ CWD=$(pwd) GITHUB_REPO=pluxml/PluXml -VERSION=${VERSION:-$(curl -s https://api.github.com/repos/${GITHUB_REPO}/releases/latest | jq -r .tag_name | sed 's|^null$|trunk|')} # or VERSION=trunk +VERSION=${VERSION:-latest} PRGNAM=$(basename $CWD) ARCH="noarch" # hardcode ARCH @@ -34,6 +34,8 @@ REPOSITORY=/home/installs/SlackBuilds/repositories/$PRGNAM cp -R $REPOSITORY $PKG/$VHOSTROOT/htdocs cd $PKG/$VHOSTROOT/htdocs +[ "x$VERSION" == "xlatest" ] && VERSION=$(git for-each-ref --sort=taggerdate --format '%(tag)' | tail -n1) +[ "x$VERSION" == "x" ] && VERSION=trunk [ "x$VERSION" == "xtrunk" ] && VERSION="git_$(git log -1 --format=%h_%ad --date=format:%Y.%m.%d)" || git checkout $VERSION rm -fr $PKG/$VHOSTROOT/htdocs/.git diff --git a/wayland/cage/SlackBuild b/wayland/cage/SlackBuild index 692cc090..1c4fe6aa 100755 --- a/wayland/cage/SlackBuild +++ b/wayland/cage/SlackBuild @@ -2,7 +2,7 @@ # variables GITHUB_REPO=Hjdskes/cage -VERSION=${VERSION:-$(curl -s https://api.github.com/repos/${GITHUB_REPO}/releases/latest | jq -r .tag_name | sed 's|^null$|trunk|')} # or VERSION=trunk +VERSION=${VERSION:-latest} BUILD=1 TAG=gwh @@ -31,6 +31,8 @@ git pull --all cp -R $REPOSITORY $TMP/ cd $TMP/$PRGNAM/ +[ "x$VERSION" == "xlatest" ] && VERSION=$(git for-each-ref --sort=taggerdate --format '%(tag)' | tail -n1) +[ "x$VERSION" == "x" ] && VERSION=trunk [ "x$VERSION" == "xtrunk" ] && VERSION="git_$(git log -1 --format=%h_%ad --date=format:%Y.%m.%d)" || git checkout $VERSION # wget -c https://github.com/Hjdskes/cage/pull/217.patch diff --git a/wayland/foot/SlackBuild b/wayland/foot/SlackBuild index c81ceab9..c17980fd 100755 --- a/wayland/foot/SlackBuild +++ b/wayland/foot/SlackBuild @@ -29,6 +29,8 @@ git pull --all cp -R $REPOSITORY $TMP/ cd $TMP/$PRGNAM/ +[ "x$VERSION" == "xlatest" ] && VERSION=$(git for-each-ref --sort=taggerdate --format '%(tag)' | tail -n1) +[ "x$VERSION" == "x" ] && VERSION=trunk [ "x$VERSION" == "xtrunk" ] && VERSION="git_$(git log -1 --format=%h_%ad --date=format:%Y.%m.%d)" || git checkout $VERSION meson setup \ diff --git a/wayland/imv/SlackBuild b/wayland/imv/SlackBuild index f1180bdc..63c1f15c 100755 --- a/wayland/imv/SlackBuild +++ b/wayland/imv/SlackBuild @@ -2,7 +2,7 @@ # variables GITHUB_REPO=eXeC64/imv -VERSION=${VERSION:-$(curl -s https://api.github.com/repos/${GITHUB_REPO}/releases/latest | jq -r .tag_name | sed 's|^null$|trunk|')} # or VERSION=trunk +VERSION=${VERSION:-latest} BUILD=1 @@ -32,6 +32,8 @@ git pull --all cp -R $REPOSITORY $TMP/ cd $TMP/$PRGNAM/ +[ "x$VERSION" == "xlatest" ] && VERSION=$(git for-each-ref --sort=taggerdate --format '%(tag)' | tail -n1) +[ "x$VERSION" == "x" ] && VERSION=trunk [ "x$VERSION" == "xtrunk" ] && VERSION="git_$(git log -1 --format=%h_%ad --date=format:%Y.%m.%d)" || git checkout $VERSION meson setup --prefix /usr --mandir /usr/man/ build/ diff --git a/wayland/kanshi/SlackBuild b/wayland/kanshi/SlackBuild index 75bea910..3598e042 100755 --- a/wayland/kanshi/SlackBuild +++ b/wayland/kanshi/SlackBuild @@ -2,7 +2,7 @@ # variables GITHUB_REPO=emersion/kanshi -VERSION=${VERSION:-$(curl -s https://api.github.com/repos/${GITHUB_REPO}/releases/latest | jq -r .tag_name | sed 's|^null$|trunk|')} # or VERSION=trunk +VERSION=${VERSION:-latest} BUILD=1 @@ -32,6 +32,8 @@ git pull --all cp -R $REPOSITORY $TMP/ cd $TMP/$PRGNAM/ +[ "x$VERSION" == "xlatest" ] && VERSION=$(git for-each-ref --sort=taggerdate --format '%(tag)' | tail -n1) +[ "x$VERSION" == "x" ] && VERSION=trunk [ "x$VERSION" == "xtrunk" ] && VERSION="git_$(git log -1 --format=%h_%ad --date=format:%Y.%m.%d)" || git checkout $VERSION meson setup \ diff --git a/wayland/lswt/SlackBuild b/wayland/lswt/SlackBuild index 8801099d..788cf384 100755 --- a/wayland/lswt/SlackBuild +++ b/wayland/lswt/SlackBuild @@ -30,6 +30,8 @@ git pull --all cp -R $REPOSITORY $TMP/ cd $TMP/$PRGNAM/ +[ "x$VERSION" == "xlatest" ] && VERSION=$(git for-each-ref --sort=taggerdate --format '%(tag)' | tail -n1) +[ "x$VERSION" == "x" ] && VERSION=trunk [ "x$VERSION" == "xtrunk" ] && VERSION="git_$(git log -1 --format=%h_%ad --date=format:%Y.%m.%d)" || git checkout $VERSION make diff --git a/wayland/mako/SlackBuild b/wayland/mako/SlackBuild index 4f616e6e..981779a6 100755 --- a/wayland/mako/SlackBuild +++ b/wayland/mako/SlackBuild @@ -2,7 +2,7 @@ # variables GITHUB_REPO=emersion/mako -VERSION=${VERSION:-$(curl -s https://api.github.com/repos/${GITHUB_REPO}/releases/latest | jq -r .tag_name | sed 's|^null$|trunk|')} # or VERSION=trunk +VERSION=${VERSION:-latest} BUILD=1 @@ -32,6 +32,8 @@ git pull --all cp -R $REPOSITORY $TMP/ cd $TMP/$PRGNAM/ +[ "x$VERSION" == "xlatest" ] && VERSION=$(git for-each-ref --sort=taggerdate --format '%(tag)' | tail -n1) +[ "x$VERSION" == "x" ] && VERSION=trunk [ "x$VERSION" == "xtrunk" ] && VERSION="git_$(git log -1 --format=%h_%ad --date=format:%Y.%m.%d)" || git checkout $VERSION meson setup \ diff --git a/wayland/qtile/SlackBuild b/wayland/qtile/SlackBuild index 0a6bb3e7..05ffdaa1 100755 --- a/wayland/qtile/SlackBuild +++ b/wayland/qtile/SlackBuild @@ -2,7 +2,7 @@ # variables GITHUB_REPO=qtile/qtile -VERSION=${VERSION:-$(curl -s https://api.github.com/repos/${GITHUB_REPO}/releases/latest | jq -r .tag_name | sed 's|^null$|trunk|')} # or VERSION=trunk +VERSION=${VERSION:-latest} BUILD=1 @@ -32,6 +32,8 @@ git pull --all cp -R $REPOSITORY $TMP/ cd $TMP/$PRGNAM/ +[ "x$VERSION" == "xlatest" ] && VERSION=$(git for-each-ref --sort=taggerdate --format '%(tag)' | tail -n1) +[ "x$VERSION" == "x" ] && VERSION=trunk [ "x$VERSION" == "xtrunk" ] && VERSION="git_$(git log -1 --format=%h_%ad --date=format:%Y.%m.%d)" || git checkout $VERSION # installation diff --git a/wayland/river/SlackBuild b/wayland/river/SlackBuild index 59a15ce3..667b91b6 100755 --- a/wayland/river/SlackBuild +++ b/wayland/river/SlackBuild @@ -2,7 +2,7 @@ # variables GITHUB_REPO=ifreund/river -VERSION=${VERSION:-$(curl -s https://api.github.com/repos/${GITHUB_REPO}/releases/latest | jq -r .tag_name | sed 's|^null$|trunk|')} # or VERSION=trunk +VERSION=${VERSION:-latest} BUILD=1 @@ -33,6 +33,8 @@ git submodule update cp -R $REPOSITORY $TMP/ cd $TMP/$PRGNAM/ +[ "x$VERSION" == "xlatest" ] && VERSION=$(git for-each-ref --sort=taggerdate --format '%(tag)' | tail -n1) +[ "x$VERSION" == "x" ] && VERSION=trunk [ "x$VERSION" == "xtrunk" ] && VERSION="git_$(git log -1 --format=%h_%ad --date=format:%Y.%m.%d)" || git checkout $VERSION zig build -Dxwayland -Drelease-safe --prefix $PKG$PREFIX install diff --git a/wayland/seatd/SlackBuild b/wayland/seatd/SlackBuild index cccceb75..f4fd5575 100755 --- a/wayland/seatd/SlackBuild +++ b/wayland/seatd/SlackBuild @@ -1,7 +1,7 @@ #!/bin/bash # variables -VERSION=${VERSION:-"trunk"} +VERSION=${VERSION:-"latest"} BUILD=1 TAG=gwh @@ -30,6 +30,8 @@ git pull --all cp -R $REPOSITORY $TMP/ cd $TMP/$PRGNAM/ +[ "x$VERSION" == "xlatest" ] && VERSION=$(git for-each-ref --sort=taggerdate --format '%(tag)' | tail -n1) +[ "x$VERSION" == "x" ] && VERSION=trunk [ "x$VERSION" == "xtrunk" ] && VERSION="git_$(git log -1 --format=%h_%ad --date=format:%Y.%m.%d)" || git checkout $VERSION meson setup --prefix /usr --mandir /usr/man/ build/ @@ -73,4 +75,4 @@ EOF # empaquetage rm -f $PKG/{,usr/}lib$(uname -m | grep -o 64)/*.la -/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.txz +/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$(echo $VERSION | tr - _)-$ARCH-$BUILD$TAG.txz diff --git a/wayland/swaybg/SlackBuild b/wayland/swaybg/SlackBuild index 527ff0cc..2743f0fe 100755 --- a/wayland/swaybg/SlackBuild +++ b/wayland/swaybg/SlackBuild @@ -2,7 +2,7 @@ # variables GITHUB_REPO=swaywm/swaybg -VERSION=${VERSION:-$(curl -s https://api.github.com/repos/${GITHUB_REPO}/releases/latest | jq -r .tag_name | sed 's|^null$|trunk|')} # or VERSION=trunk +VERSION=${VERSION:-latest} BUILD=1 @@ -32,6 +32,8 @@ git pull --all cp -R $REPOSITORY $TMP/ cd $TMP/$PRGNAM/ +[ "x$VERSION" == "xlatest" ] && VERSION=$(git for-each-ref --sort=taggerdate --format '%(tag)' | tail -n1) +[ "x$VERSION" == "x" ] && VERSION=trunk [ "x$VERSION" == "xtrunk" ] && VERSION="git_$(git log -1 --format=%h_%ad --date=format:%Y.%m.%d)" || git checkout $VERSION meson setup --prefix /usr --mandir /usr/man/ build/ diff --git a/wayland/swayidle/SlackBuild b/wayland/swayidle/SlackBuild index 935a1ca7..e93a21d0 100755 --- a/wayland/swayidle/SlackBuild +++ b/wayland/swayidle/SlackBuild @@ -2,7 +2,7 @@ # variables GITHUB_REPO=swaywm/swayidle -VERSION=${VERSION:-$(curl -s https://api.github.com/repos/${GITHUB_REPO}/releases/latest | jq -r .tag_name | sed 's|^null$|trunk|')} # or VERSION=trunk +VERSION=${VERSION:-latest} BUILD=1 @@ -32,6 +32,8 @@ git pull --all cp -R $REPOSITORY $TMP/ cd $TMP/$PRGNAM/ +[ "x$VERSION" == "xlatest" ] && VERSION=$(git for-each-ref --sort=taggerdate --format '%(tag)' | tail -n1) +[ "x$VERSION" == "x" ] && VERSION=trunk [ "x$VERSION" == "xtrunk" ] && VERSION="git_$(git log -1 --format=%h_%ad --date=format:%Y.%m.%d)" || git checkout $VERSION meson setup --prefix /usr --mandir /usr/man/ build/ diff --git a/wayland/swaylock/SlackBuild b/wayland/swaylock/SlackBuild index 52f598a4..e55de9f4 100755 --- a/wayland/swaylock/SlackBuild +++ b/wayland/swaylock/SlackBuild @@ -2,7 +2,7 @@ # variables GITHUB_REPO=swaywm/swaylock -VERSION=${VERSION:-$(curl -s https://api.github.com/repos/${GITHUB_REPO}/releases/latest | jq -r .tag_name | sed 's|^null$|trunk|')} # or VERSION=trunk +VERSION=${VERSION:-latest} BUILD=1 @@ -32,6 +32,8 @@ git pull --all cp -R $REPOSITORY $TMP/ cd $TMP/$PRGNAM/ +[ "x$VERSION" == "xlatest" ] && VERSION=$(git for-each-ref --sort=taggerdate --format '%(tag)' | tail -n1) +[ "x$VERSION" == "x" ] && VERSION=trunk [ "x$VERSION" == "xtrunk" ] && VERSION="git_$(git log -1 --format=%h_%ad --date=format:%Y.%m.%d)" || git checkout $VERSION meson setup --prefix /usr --mandir /usr/man/ build/ diff --git a/wayland/swayr/SlackBuild b/wayland/swayr/SlackBuild index d47fc21d..bd895031 100755 --- a/wayland/swayr/SlackBuild +++ b/wayland/swayr/SlackBuild @@ -30,6 +30,8 @@ git pull --all cp -R $REPOSITORY $TMP/ cd $TMP/$PRGNAM +[ "x$VERSION" == "xlatest" ] && VERSION=$(git for-each-ref --sort=taggerdate --format '%(tag)' | tail -n1) +[ "x$VERSION" == "x" ] && VERSION=trunk [ "x$VERSION" == "xtrunk" ] && VERSION="git_$(git log -1 --format=%h_%ad --date=format:%Y.%m.%d)" || git checkout $VERSION cargo build --release diff --git a/wayland/waybar/SlackBuild b/wayland/waybar/SlackBuild index 415a89a8..07e4a010 100755 --- a/wayland/waybar/SlackBuild +++ b/wayland/waybar/SlackBuild @@ -2,7 +2,7 @@ # variables GITHUB_REPO=Alexays/Waybar -VERSION=${VERSION:-$(curl -s https://api.github.com/repos/${GITHUB_REPO}/releases/latest | jq -r .tag_name | sed 's|^null$|trunk|')} # or VERSION=trunk +VERSION=${VERSION:-latest} BUILD=1 @@ -32,6 +32,8 @@ git pull --all cp -R $REPOSITORY $TMP/ cd $TMP/$PRGNAM/ +[ "x$VERSION" == "xlatest" ] && VERSION=$(git for-each-ref --sort=taggerdate --format '%(tag)' | tail -n1) +[ "x$VERSION" == "x" ] && VERSION=trunk [ "x$VERSION" == "xtrunk" ] && VERSION="git_$(git log -1 --format=%h_%ad --date=format:%Y.%m.%d)" || git checkout $VERSION meson setup \ diff --git a/wayland/wlopm/SlackBuild b/wayland/wlopm/SlackBuild index c8c88c03..707ced17 100755 --- a/wayland/wlopm/SlackBuild +++ b/wayland/wlopm/SlackBuild @@ -30,6 +30,8 @@ git pull --all cp -R $REPOSITORY $TMP/ cd $TMP/$PRGNAM/ +[ "x$VERSION" == "xlatest" ] && VERSION=$(git for-each-ref --sort=taggerdate --format '%(tag)' | tail -n1) +[ "x$VERSION" == "x" ] && VERSION=trunk [ "x$VERSION" == "xtrunk" ] && VERSION="git_$(git log -1 --format=%h_%ad --date=format:%Y.%m.%d)" || git checkout $VERSION make diff --git a/wayland/wlr-randr/SlackBuild b/wayland/wlr-randr/SlackBuild index 12bb0395..f90e91b9 100755 --- a/wayland/wlr-randr/SlackBuild +++ b/wayland/wlr-randr/SlackBuild @@ -2,7 +2,7 @@ # variables GITHUB_REPO=emersion/wlr-randr -VERSION=${VERSION:-$(curl -s https://api.github.com/repos/${GITHUB_REPO}/releases/latest | jq -r .tag_name | sed 's|^null$|trunk|')} # or VERSION=trunk +VERSION=${VERSION:-latest} BUILD=1 @@ -32,6 +32,8 @@ git pull --all cp -R $REPOSITORY $TMP/ cd $TMP/$PRGNAM/ +[ "x$VERSION" == "xlatest" ] && VERSION=$(git for-each-ref --sort=taggerdate --format '%(tag)' | tail -n1) +[ "x$VERSION" == "x" ] && VERSION=trunk [ "x$VERSION" == "xtrunk" ] && VERSION="git_$(git log -1 --format=%h_%ad --date=format:%Y.%m.%d)" || git checkout $VERSION meson setup \ diff --git a/xap/alacritty/SlackBuild b/xap/alacritty/SlackBuild index 8b71d5e0..126fb689 100755 --- a/xap/alacritty/SlackBuild +++ b/xap/alacritty/SlackBuild @@ -2,7 +2,7 @@ # variables GITHUB_REPO=jwilm/alacritty -VERSION=${VERSION:-$(curl -s https://api.github.com/repos/${GITHUB_REPO}/releases/latest | jq -r .tag_name | sed 's|^null$|trunk|')} # or VERSION=trunk +VERSION=${VERSION:-latest} BUILD=${BUILD:-1} TAG=gwh @@ -31,6 +31,8 @@ git pull --all cp -R $REPOSITORY $TMP/ cd $TMP/$PRGNAM +[ "x$VERSION" == "xlatest" ] && VERSION=$(git for-each-ref --sort=taggerdate --format '%(tag)' | tail -n1) +[ "x$VERSION" == "x" ] && VERSION=trunk [ "x$VERSION" == "xtrunk" ] && VERSION="git_$(git log -1 --format=%h_%ad --date=format:%Y.%m.%d)" || git checkout $VERSION cargo build --release diff --git a/xap/alttab/SlackBuild b/xap/alttab/SlackBuild index 00557a72..29bdfd6f 100755 --- a/xap/alttab/SlackBuild +++ b/xap/alttab/SlackBuild @@ -3,7 +3,7 @@ set -x PRGNAM=$(basename $(pwd)) GITHUB_REPO=sagb/alttab -VERSION=${VERSION:-$(curl -s https://api.github.com/repos/${GITHUB_REPO}/releases/latest | jq -r .tag_name | sed 's|^null$|trunk|')} # or VERSION=trunk +VERSION=${VERSION:-latest} BUILD=1 @@ -34,6 +34,8 @@ cp -R $REPOSITORY $TMP/$PRGNAM # Preparation cd $TMP/$PRGNAM +[ "x$VERSION" == "xlatest" ] && VERSION=$(git for-each-ref --sort=taggerdate --format '%(tag)' | tail -n1) +[ "x$VERSION" == "x" ] && VERSION=trunk [ "x$VERSION" == "xtrunk" ] && VERSION="git_$(git log -1 --format=%h_%ad --date=format:%Y.%m.%d)" || git checkout $VERSION chown -R root:root . diff --git a/xap/brightnessctl/SlackBuild b/xap/brightnessctl/SlackBuild index a16d0983..91fae9bf 100755 --- a/xap/brightnessctl/SlackBuild +++ b/xap/brightnessctl/SlackBuild @@ -5,7 +5,7 @@ CWD=$(pwd) PRGNAM=$(basename $(pwd)) GITHUB_REPO=Hummer12007/brightnessctl -VERSION=${VERSION:-$(curl -s https://api.github.com/repos/${GITHUB_REPO}/releases/latest | jq -r .tag_name | sed 's|^null$|trunk|')} # or VERSION=trunk +VERSION=${VERSION:-latest} ARCH=${ARCH:-$(uname -m)} BUILD=1 @@ -32,6 +32,8 @@ cd $TMP cp -R $REPOSITORIES/$PRGNAM $TMP/$PRGNAM cd $TMP/$PRGNAM +[ "x$VERSION" == "xlatest" ] && VERSION=$(git for-each-ref --sort=taggerdate --format '%(tag)' | tail -n1) +[ "x$VERSION" == "x" ] && VERSION=trunk [ "x$VERSION" == "xtrunk" ] && VERSION="git_$(git log -1 --format=%h_%ad --date=format:%Y.%m.%d)" || git checkout $VERSION # compilation diff --git a/xap/gammastep/SlackBuild b/xap/gammastep/SlackBuild index a1f6728a..cc3acef4 100755 --- a/xap/gammastep/SlackBuild +++ b/xap/gammastep/SlackBuild @@ -30,6 +30,8 @@ git pull --all cp -R $REPOSITORY $TMP/ cd $TMP/$PRGNAM +[ "x$VERSION" == "xlatest" ] && VERSION=$(git for-each-ref --sort=taggerdate --format '%(tag)' | tail -n1) +[ "x$VERSION" == "x" ] && VERSION=trunk [ "x$VERSION" == "xtrunk" ] && VERSION="git_$(git log -1 --format=%h_%ad --date=format:%Y.%m.%d)" || git checkout $VERSION ./bootstrap diff --git a/xap/i3status-rust/SlackBuild b/xap/i3status-rust/SlackBuild index 97911cd6..fc804d99 100755 --- a/xap/i3status-rust/SlackBuild +++ b/xap/i3status-rust/SlackBuild @@ -2,7 +2,7 @@ # variables GITHUB_REPO=greshake/i3status-rust -VERSION=${VERSION:-$(curl -s https://api.github.com/repos/${GITHUB_REPO}/releases/latest | jq -r .tag_name | sed 's|^null$|trunk|')} # or VERSION=trunk +VERSION=${VERSION:-latest} BUILD=${BUILD:-1} TAG=gwh @@ -31,6 +31,8 @@ git pull --all cp -R $REPOSITORY $TMP/ cd $TMP/$PRGNAM +[ "x$VERSION" == "xlatest" ] && VERSION=$(git for-each-ref --sort=taggerdate --format '%(tag)' | tail -n1) +[ "x$VERSION" == "x" ] && VERSION=trunk [ "x$VERSION" == "xtrunk" ] && VERSION="git_$(git log -1 --format=%h_%ad --date=format:%Y.%m.%d)" || git checkout $VERSION cargo build --release --features "pulseaudio" diff --git a/xap/image-roll/SlackBuild b/xap/image-roll/SlackBuild index a5f2010a..8bfbc51c 100755 --- a/xap/image-roll/SlackBuild +++ b/xap/image-roll/SlackBuild @@ -2,7 +2,7 @@ # variables GITHUB_REPO=weclaw1/image-roll -VERSION=${VERSION:-$(curl -s https://api.github.com/repos/${GITHUB_REPO}/releases/latest | jq -r .tag_name | sed 's|^null$|trunk|')} # or VERSION=trunk +VERSION=${VERSION:-latest} BUILD=${BUILD:-1} TAG=gwh @@ -31,6 +31,8 @@ git pull --all cp -R $REPOSITORY $TMP/ cd $TMP/$PRGNAM +[ "x$VERSION" == "xlatest" ] && VERSION=$(git for-each-ref --sort=taggerdate --format '%(tag)' | tail -n1) +[ "x$VERSION" == "x" ] && VERSION=trunk [ "x$VERSION" == "xtrunk" ] && VERSION="git_$(git log -1 --format=%h_%ad --date=format:%Y.%m.%d)" || git checkout $VERSION cargo build --release diff --git a/xap/kitty/SlackBuild b/xap/kitty/SlackBuild index 0e3aee84..331d600d 100755 --- a/xap/kitty/SlackBuild +++ b/xap/kitty/SlackBuild @@ -8,7 +8,7 @@ OUTPUT=/tmp PRGNAM=$(basename $CWD) GITHUB_REPO=kovidgoyal/kitty -VERSION=${VERSION:-$(curl -s https://api.github.com/repos/${GITHUB_REPO}/releases/latest | jq -r .tag_name | sed 's|^null$|trunk|')} # or VERSION=trunk +VERSION=${VERSION:-latest} ARCH=$(uname -m) BUILD=1 @@ -31,6 +31,8 @@ git pull --all cp -R $REPOSITORY $TMP/$PRGNAM cd $TMP/$PRGNAM/ +[ "x$VERSION" == "xlatest" ] && VERSION=$(git for-each-ref --sort=taggerdate --format '%(tag)' | tail -n1) +[ "x$VERSION" == "x" ] && VERSION=trunk [ "x$VERSION" == "xtrunk" ] && VERSION="git_$(git log -1 --format=%h_%ad --date=format:%Y.%m.%d)" || git checkout $VERSION # installation diff --git a/xap/leocad/SlackBuild b/xap/leocad/SlackBuild index e94259d7..7a2de57d 100755 --- a/xap/leocad/SlackBuild +++ b/xap/leocad/SlackBuild @@ -12,7 +12,7 @@ PKG=$TMP/pkg-$PRGNAM ARCH=$(uname -m) BUILD=1 GITHUB_REPO=leozide/leocad -VERSION=${VERSION:-$(curl -s https://api.github.com/repos/${GITHUB_REPO}/releases/latest | jq -r .tag_name | sed 's|^null$|trunk|')} # or VERSION=trunk +VERSION=${VERSION:-latest} REPOSITORY=/home/installs/SlackBuilds/repositories/$PRGNAM @@ -28,6 +28,8 @@ git pull --all cp -R $REPOSITORY $TMP/$PRGNAM cd $TMP/$PRGNAM/ +[ "x$VERSION" == "xlatest" ] && VERSION=$(git for-each-ref --sort=taggerdate --format '%(tag)' | tail -n1) +[ "x$VERSION" == "x" ] && VERSION=trunk [ "x$VERSION" == "xtrunk" ] && VERSION="git_$(git log -1 --format=%h_%ad --date=format:%Y.%m.%d)" || git checkout $VERSION qmake-qt5 DISABLE_UPDATE_CHECK=1 DOCS_DIR=/usr/doc/$PRGNAM MAN_DIR=/usr/man/man1 leocad.pro diff --git a/xap/nextcloud-client/SlackBuild b/xap/nextcloud-client/SlackBuild index 0c714195..ec539303 100755 --- a/xap/nextcloud-client/SlackBuild +++ b/xap/nextcloud-client/SlackBuild @@ -5,7 +5,7 @@ CWD=$(pwd) PRGNAM=$(basename $CWD) GITHUB_REPO=nextcloud/desktop -VERSION=${VERSION:-$(curl -s https://api.github.com/repos/${GITHUB_REPO}/releases/latest | jq -r .tag_name | sed 's|^null$|trunk|')} # or VERSION=trunk +VERSION=${VERSION:-latest} ARCH=${ARCH:-$(uname -m)} BUILD=1 @@ -33,6 +33,8 @@ git pull --all cp -R $REPOSITORY $TMP/$PRGNAM cd $TMP/$PRGNAM +[ "x$VERSION" == "xlatest" ] && VERSION=$(git for-each-ref --sort=taggerdate --format '%(tag)' | tail -n1) +[ "x$VERSION" == "x" ] && VERSION=trunk [ "x$VERSION" == "xtrunk" ] && VERSION="git_$(git log -1 --format=%h_%ad --date=format:%Y.%m.%d)" || git checkout $VERSION git submodule update --init --recursive diff --git a/xap/polybar/SlackBuild b/xap/polybar/SlackBuild index 5509a523..c933db05 100755 --- a/xap/polybar/SlackBuild +++ b/xap/polybar/SlackBuild @@ -2,7 +2,7 @@ # variables GITHUB_REPO=polybar/polybar -VERSION=${VERSION:-$(curl -s https://api.github.com/repos/${GITHUB_REPO}/releases/latest | jq -r .tag_name | sed 's|^null$|trunk|')} # or VERSION=trunk +VERSION=${VERSION:-latest} BUILD=${BUILD:-1} TAG=gwh @@ -32,6 +32,8 @@ git pull --all cp -R $REPOSITORY $TMP/ cd $TMP/$PRGNAM +[ "x$VERSION" == "xlatest" ] && VERSION=$(git for-each-ref --sort=taggerdate --format '%(tag)' | tail -n1) +[ "x$VERSION" == "x" ] && VERSION=trunk [ "x$VERSION" == "xtrunk" ] && VERSION="git_$(git log -1 --format=%h_%ad --date=format:%Y.%m.%d)" || git checkout $VERSION git submodule init diff --git a/xap/radeon-profile/SlackBuild b/xap/radeon-profile/SlackBuild index cdbbb512..13235a1b 100755 --- a/xap/radeon-profile/SlackBuild +++ b/xap/radeon-profile/SlackBuild @@ -12,7 +12,7 @@ PKG=$TMP/pkg-$PRGNAM ARCH=$(uname -m) BUILD=1 GITHUB_REPO=marazmista/radeon-profile -VERSION=${VERSION:-$(curl -s https://api.github.com/repos/${GITHUB_REPO}/releases/latest | jq -r .tag_name | sed 's|^null$|trunk|')} # or VERSION=trunk +VERSION=${VERSION:-latest} REPOSITORY=/home/installs/SlackBuilds/repositories/$PRGNAM @@ -28,6 +28,8 @@ git pull --all cp -R $REPOSITORY $TMP/$PRGNAM cd $TMP/$PRGNAM/$PRGNAM/ +[ "x$VERSION" == "xlatest" ] && VERSION=$(git for-each-ref --sort=taggerdate --format '%(tag)' | tail -n1) +[ "x$VERSION" == "x" ] && VERSION=trunk [ "x$VERSION" == "xtrunk" ] && VERSION="git_$(git log -1 --format=%h_%ad --date=format:%Y.%m.%d)" || git checkout $VERSION qmake-qt5 DISABLE_UPDATE_CHECK=1 DOCS_DIR=/usr/doc/$PRGNAM MAN_DIR=/usr/man/man1 diff --git a/xap/rkvm/SlackBuild b/xap/rkvm/SlackBuild index b20cf34f..999dd4ae 100755 --- a/xap/rkvm/SlackBuild +++ b/xap/rkvm/SlackBuild @@ -2,7 +2,7 @@ # variables GITHUB_REPO=htrefil/rkvm -VERSION=${VERSION:-$(curl -s https://api.github.com/repos/${GITHUB_REPO}/releases/latest | jq -r .tag_name | sed 's|^null$|trunk|')} # or VERSION=trunk +VERSION=${VERSION:-latest} BUILD=${BUILD:-1} TAG=gwh @@ -31,6 +31,8 @@ git pull --all cp -R $REPOSITORY $TMP/ cd $TMP/$PRGNAM +[ "x$VERSION" == "xlatest" ] && VERSION=$(git for-each-ref --sort=taggerdate --format '%(tag)' | tail -n1) +[ "x$VERSION" == "x" ] && VERSION=trunk [ "x$VERSION" == "xtrunk" ] && VERSION="git_$(git log -1 --format=%h_%ad --date=format:%Y.%m.%d)" || git checkout $VERSION cargo build --release diff --git a/xap/wezterm/SlackBuild b/xap/wezterm/SlackBuild index a010bb7c..df9e4739 100755 --- a/xap/wezterm/SlackBuild +++ b/xap/wezterm/SlackBuild @@ -3,7 +3,7 @@ # variables BUILD=${BUILD:-1} GITHUB_REPO=wez/wezterm -VERSION=${VERSION:-$(curl -s https://api.github.com/repos/${GITHUB_REPO}/releases/latest | jq -r .tag_name | sed 's|^null$|trunk|')} # or VERSION=trunk +VERSION=${VERSION:-latest} TAG=gwh TMP=/tmp/$TAG @@ -32,6 +32,8 @@ git pull --all cp -R $REPOSITORY $TMP/ cd $TMP/$PRGNAM +[ "x$VERSION" == "xlatest" ] && VERSION=$(git for-each-ref --sort=taggerdate --format '%(tag)' | tail -n1) +[ "x$VERSION" == "x" ] && VERSION=trunk [ "x$VERSION" == "xtrunk" ] && VERSION="git_$(git log -1 --format=%h_%ad --date=format:%Y.%m.%d)" || git checkout $VERSION cargo build --release diff --git a/xap/x48/SlackBuild b/xap/x48/SlackBuild index 2ec2ae17..fd86096c 100755 --- a/xap/x48/SlackBuild +++ b/xap/x48/SlackBuild @@ -5,7 +5,7 @@ PRGNAM=x48 BUILD=1 GITHUB_REPO=gwenhael-le-moine/x48 -VERSION=${VERSION:-$(curl -s https://api.github.com/repos/${GITHUB_REPO}/releases/latest | jq -r .tag_name | sed 's|^null$|trunk|')} # or VERSION=trunk +VERSION=${VERSION:-latest} ARCH=$(uname -m) LIBSUFFIX=$(echo $ARCH | grep -o "\(64\)") @@ -35,6 +35,8 @@ cp -R $REPOSITORY $TMP/$PRGNAM # Preparation cd $TMP/$PRGNAM +[ "x$VERSION" == "xlatest" ] && VERSION=$(git for-each-ref --sort=taggerdate --format '%(tag)' | tail -n1) +[ "x$VERSION" == "x" ] && VERSION=trunk [ "x$VERSION" == "xtrunk" ] && VERSION="git_$(git log -1 --format=%h_%ad --date=format:%Y.%m.%d)" || git checkout $VERSION chown -R root:root . diff --git a/xap/x49gp/SlackBuild b/xap/x49gp/SlackBuild index c72903d8..b3fb5e36 100755 --- a/xap/x49gp/SlackBuild +++ b/xap/x49gp/SlackBuild @@ -5,7 +5,7 @@ CWD=$(pwd) PRGNAM=$(basename $CWD) GITHUB_REPO=gwenhael-le-moine/x49gp #claudiobsd/x49gp -VERSION=${VERSION:-$(curl -s https://api.github.com/repos/${GITHUB_REPO}/releases/latest | jq -r .tag_name | sed 's|^null$|trunk|')} # or VERSION=trunk +VERSION=${VERSION:-latest} NEWRPL_VERSION=1487 BUILD=6 @@ -35,6 +35,8 @@ git pull --all cp -R $REPOSITORY $TMP/$PRGNAM cd $TMP/$PRGNAM +[ "x$VERSION" == "xlatest" ] && VERSION=$(git for-each-ref --sort=taggerdate --format '%(tag)' | tail -n1) +[ "x$VERSION" == "x" ] && VERSION=trunk [ "x$VERSION" == "xtrunk" ] && VERSION="git_$(git log -1 --format=%h_%ad --date=format:%Y.%m.%d)" || git checkout $VERSION # Preparation diff --git a/y/cboard/SlackBuild b/y/cboard/SlackBuild index 5ce9183f..620a0153 100755 --- a/y/cboard/SlackBuild +++ b/y/cboard/SlackBuild @@ -33,6 +33,8 @@ git pull --all cp -R $REPOSITORY $TMP/$PRGNAM-$VERSION cd $TMP/$PRGNAM-$VERSION +[ "x$VERSION" == "xlatest" ] && VERSION=$(git for-each-ref --sort=taggerdate --format '%(tag)' | tail -n1) +[ "x$VERSION" == "x" ] && VERSION=trunk [ "x$VERSION" == "xtrunk" ] && VERSION="git_$(git log -1 --format=%h_%ad --date=format:%Y.%m.%d)" || git checkout $VERSION chown -R root:root . diff --git a/y/steamtinkerlaunch/SlackBuild b/y/steamtinkerlaunch/SlackBuild index 4baff363..8af083e7 100755 --- a/y/steamtinkerlaunch/SlackBuild +++ b/y/steamtinkerlaunch/SlackBuild @@ -2,7 +2,7 @@ # variables GITHUB_REPO=frostworx/steamtinkerlaunch -VERSION=${VERSION:-$(curl -s https://api.github.com/repos/${GITHUB_REPO}/releases/latest | jq -r .tag_name | sed 's|^null$|trunk|')} # or VERSION=trunk +VERSION=${VERSION:-latest} # or VERSION=trunk TAG=gwh TMP=/tmp/$TAG @@ -29,6 +29,9 @@ git pull --all cp -R $REPOSITORY $TMP/$PRGNAM cd $TMP/$PRGNAM/ + +[ "x$VERSION" == "xlatest" ] && VERSION=$(git for-each-ref --sort=taggerdate --format '%(tag)' | tail -n1) +[ "x$VERSION" == "x" ] && VERSION=trunk [ "x$VERSION" == "xtrunk" ] && VERSION="git_$(git log -1 --format=%h_%ad --date=format:%Y.%m.%d)" || git checkout $VERSION make PREFIX="$PKG/usr" install @@ -74,4 +77,4 @@ EOF # empaquetage cd $PKG rm -f $PKG/{,usr/}lib$(uname -m | grep -o 64)/*.la -/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$(echo ${VERSION}_${LIBRARY_VERSION} | sed 's/-//g')-$ARCH-$BUILD$TAG.txz +/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$(echo ${VERSION} | tr - _)-$ARCH-$BUILD$TAG.txz