git native way to determine latest tag

This commit is contained in:
Gwenhael Le Moine 2022-01-22 10:52:07 +01:00
parent 467de7c8ec
commit bc1ef1e75d
No known key found for this signature in database
GPG key ID: FDFE3669426707A7
105 changed files with 294 additions and 87 deletions

View file

@ -3,7 +3,7 @@
# variables # variables
CWD=$(pwd) CWD=$(pwd)
GITHUB_REPO=winterheart/broadcom-bt-firmware 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} BUILD=${BUILD:-1}
TAG=gwh TAG=gwh
@ -25,6 +25,8 @@ rm -fr $PKG
# mise en place # mise en place
[ ! -e $REPOSITORY ] && git clone https://github.com/${GITHUB_REPO}.git $REPOSITORY [ ! -e $REPOSITORY ] && git clone https://github.com/${GITHUB_REPO}.git $REPOSITORY
( cd $REPOSITORY; git pull ) ( 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 [ "x$VERSION" == "xtrunk" ] && VERSION="git_$(git log -1 --format=%h_%ad --date=format:%Y.%m.%d)" || git checkout $VERSION
mkdir -p $PKG/lib/firmware/ mkdir -p $PKG/lib/firmware/

View file

@ -4,7 +4,7 @@
CWD=$(pwd) CWD=$(pwd)
GITHUB_REPO=longsleep/build-pine64-image 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} BUILD=${BUILD:-1}
TAG=gwh TAG=gwh
@ -26,6 +26,8 @@ rm -fr $PKG
# mise en place # mise en place
[ ! -e $REPOSITORY ] && git clone https://github.com/${GITHUB_REPO}.git $REPOSITORY [ ! -e $REPOSITORY ] && git clone https://github.com/${GITHUB_REPO}.git $REPOSITORY
( cd $REPOSITORY; git pull ) ( 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 [ "x$VERSION" == "xtrunk" ] && VERSION="git_$(git log -1 --format=%h_%ad --date=format:%Y.%m.%d)" || git checkout $VERSION
mkdir -p $PKG/usr/bin mkdir -p $PKG/usr/bin

View file

@ -4,7 +4,7 @@
CWD=$(pwd) CWD=$(pwd)
GITHUB_REPO=RPi-Distro/firmware-nonfree 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} BUILD=${BUILD:-1}
TAG=gwh TAG=gwh
@ -26,6 +26,8 @@ rm -fr $PKG
# mise en place # mise en place
[ ! -e $REPOSITORY ] && git clone https://github.com/${GITHUB_REPO}.git $REPOSITORY [ ! -e $REPOSITORY ] && git clone https://github.com/${GITHUB_REPO}.git $REPOSITORY
( cd $REPOSITORY; git pull ) ( 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 [ "x$VERSION" == "xtrunk" ] && VERSION="git_$(git log -1 --format=%h_%ad --date=format:%Y.%m.%d)" || git checkout $VERSION
mkdir -p $PKG/lib/firmware mkdir -p $PKG/lib/firmware

View file

@ -2,7 +2,7 @@
# variables # variables
GITHUB_REPO=Eraden/amdgpud 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} BUILD=${BUILD:-1}
TAG=gwh TAG=gwh
@ -31,6 +31,8 @@ git pull --all
cp -R $REPOSITORY $TMP/ cp -R $REPOSITORY $TMP/
cd $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 [ "x$VERSION" == "xtrunk" ] && VERSION="git_$(git log -1 --format=%h_%ad --date=format:%Y.%m.%d)" || git checkout $VERSION
cargo build --release cargo build --release

View file

@ -2,7 +2,7 @@
# variables # variables
GITHUB_REPO=imsnif/bandwhich 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} BUILD=${BUILD:-1}
TAG=gwh TAG=gwh
@ -31,6 +31,8 @@ git pull --all
cp -R $REPOSITORY $TMP/ cp -R $REPOSITORY $TMP/
cd $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 [ "x$VERSION" == "xtrunk" ] && VERSION="git_$(git log -1 --format=%h_%ad --date=format:%Y.%m.%d)" || git checkout $VERSION
cargo build --release cargo build --release

View file

@ -2,7 +2,7 @@
# variables # variables
GITHUB_REPO=sharkdp/bat 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} BUILD=${BUILD:-1}
TAG=gwh TAG=gwh
@ -31,6 +31,8 @@ git pull --all
cp -R $REPOSITORY $TMP/ cp -R $REPOSITORY $TMP/
cd $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 [ "x$VERSION" == "xtrunk" ] && VERSION="git_$(git log -1 --format=%h_%ad --date=format:%Y.%m.%d)" || git checkout $VERSION
cargo build --release cargo build --release

View file

@ -2,7 +2,7 @@
# variables # variables
GITHUB_REPO=clementtsang/bottom 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} BUILD=${BUILD:-1}
TAG=gwh TAG=gwh
@ -31,6 +31,8 @@ git pull --all
cp -R $REPOSITORY $TMP/ cp -R $REPOSITORY $TMP/
cd $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 [ "x$VERSION" == "xtrunk" ] && VERSION="git_$(git log -1 --format=%h_%ad --date=format:%Y.%m.%d)" || git checkout $VERSION
cargo build --release cargo build --release

View file

@ -2,7 +2,7 @@
# variables # variables
GITHUB_REPO=srvrco/checkssl 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} BUILD=${BUILD:-1}
TAG=gwh TAG=gwh
@ -27,6 +27,8 @@ mkdir -p $PKG
[ ! -e $REPOSITORY ] && git clone https://github.com/${GITHUB_REPO}.git $REPOSITORY [ ! -e $REPOSITORY ] && git clone https://github.com/${GITHUB_REPO}.git $REPOSITORY
cd $REPOSITORY cd $REPOSITORY
git pull --all 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 [ "x$VERSION" == "xtrunk" ] && VERSION="git_$(git log -1 --format=%h_%ad --date=format:%Y.%m.%d)" || git checkout $VERSION
mkdir -p $PKG$PREFIX/bin mkdir -p $PKG$PREFIX/bin

View file

@ -2,7 +2,7 @@
# variables # variables
GITHUB_REPO=dandavison/delta 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} BUILD=${BUILD:-1}
TAG=gwh TAG=gwh
@ -31,6 +31,8 @@ git pull --all
cp -R $REPOSITORY $TMP/ cp -R $REPOSITORY $TMP/
cd $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 [ "x$VERSION" == "xtrunk" ] && VERSION="git_$(git log -1 --format=%h_%ad --date=format:%Y.%m.%d)" || git checkout $VERSION
cargo build --release cargo build --release

View file

@ -2,7 +2,7 @@
# variables # variables
GITHUB_REPO=sharkdp/diskus 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} BUILD=${BUILD:-1}
TAG=gwh TAG=gwh
@ -31,6 +31,8 @@ git pull --all
cp -R $REPOSITORY $TMP/ cp -R $REPOSITORY $TMP/
cd $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 [ "x$VERSION" == "xtrunk" ] && VERSION="git_$(git log -1 --format=%h_%ad --date=format:%Y.%m.%d)" || git checkout $VERSION
cargo build --release cargo build --release

View file

@ -2,7 +2,7 @@
# variables # variables
GITHUB_REPO=wagoodman/dive 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} BUILD=${BUILD:-1}
TAG=gwh TAG=gwh
@ -31,6 +31,8 @@ git pull --all
cp -R $REPOSITORY $TMP/ cp -R $REPOSITORY $TMP/
cd $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 [ "x$VERSION" == "xtrunk" ] && VERSION="git_$(git log -1 --format=%h_%ad --date=format:%Y.%m.%d)" || git checkout $VERSION
make make

View file

@ -2,7 +2,7 @@
# variables # variables
GITHUB_REPO=bootandy/dust 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} BUILD=${BUILD:-1}
TAG=gwh TAG=gwh
@ -31,6 +31,8 @@ git pull --all
cp -R $REPOSITORY $TMP/ cp -R $REPOSITORY $TMP/
cd $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 [ "x$VERSION" == "xtrunk" ] && VERSION="git_$(git log -1 --format=%h_%ad --date=format:%Y.%m.%d)" || git checkout $VERSION
cargo build --release cargo build --release

View file

@ -3,7 +3,7 @@
CWD=$(pwd) CWD=$(pwd)
PRGNAM=$(basename $CWD) PRGNAM=$(basename $CWD)
GITHUB_REPO=espressif/esptool 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 BUILD=1
ARCH=noarch ARCH=noarch
@ -26,6 +26,8 @@ git pull --all
cp -R $REPOSITORY $TMP/$PRGNAM cp -R $REPOSITORY $TMP/$PRGNAM
cd $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 [ "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 python setup.py install --root $PKG

View file

@ -2,7 +2,7 @@
# variables # variables
GITHUB_REPO=ogham/exa 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} BUILD=${BUILD:-1}
TAG=gwh TAG=gwh
@ -31,6 +31,8 @@ git pull --all
cp -R $REPOSITORY $TMP/ cp -R $REPOSITORY $TMP/
cd $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 [ "x$VERSION" == "xtrunk" ] && VERSION="git_$(git log -1 --format=%h_%ad --date=format:%Y.%m.%d)" || git checkout $VERSION
cargo build --release cargo build --release

View file

@ -2,7 +2,7 @@
# variables # variables
GITHUB_REPO=AltraMayor/f3 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} BUILD=${BUILD:-1}
TAG=gwh TAG=gwh
@ -31,6 +31,8 @@ git pull --all
cp -R $REPOSITORY $TMP/ cp -R $REPOSITORY $TMP/
cd $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 [ "x$VERSION" == "xtrunk" ] && VERSION="git_$(git log -1 --format=%h_%ad --date=format:%Y.%m.%d)" || git checkout $VERSION
make all extra make all extra

View file

@ -32,6 +32,8 @@ git pull --all
cp -R $REPOSITORY $TMP/ cp -R $REPOSITORY $TMP/
cd $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 [ "x$VERSION" == "xtrunk" ] && VERSION="git_$(git log -1 --format=%h_%ad --date=format:%Y.%m.%d)" || git checkout $VERSION
cargo build --release cargo build --release

View file

@ -5,7 +5,7 @@ CWD=$(pwd)
PRGNAM=$(basename $CWD) PRGNAM=$(basename $CWD)
GITHUB_REPO=fish-shell/fish-shell 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)} ARCH=${ARCH:-$(uname -m)}
BUILD=1 BUILD=1
@ -31,6 +31,8 @@ cd $TMP
cp -R $REPOSITORY $TMP/$PRGNAM-$VERSION cp -R $REPOSITORY $TMP/$PRGNAM-$VERSION
cd $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 [ "x$VERSION" == "xtrunk" ] && VERSION="git_$(git log -1 --format=%h_%ad --date=format:%Y.%m.%d)" || git checkout $VERSION
# configuration # configuration

View file

@ -2,7 +2,7 @@
# variables # variables
GITHUB_REPO=srvrco/getssl 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} BUILD=${BUILD:-1}
TAG=gwh TAG=gwh
@ -27,6 +27,8 @@ mkdir -p $PKG
[ ! -e $REPOSITORY ] && git clone https://github.com/${GITHUB_REPO}.git $REPOSITORY [ ! -e $REPOSITORY ] && git clone https://github.com/${GITHUB_REPO}.git $REPOSITORY
cd $REPOSITORY cd $REPOSITORY
git pull --all 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 [ "x$VERSION" == "xtrunk" ] && VERSION="git_$(git log -1 --format=%h_%ad --date=format:%Y.%m.%d)" || git checkout $VERSION
mkdir -p $PKG$PREFIX/bin mkdir -p $PKG$PREFIX/bin

View file

@ -2,7 +2,7 @@
# variables # variables
GITHUB_REPO=pemistahl/grex 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} BUILD=${BUILD:-1}
TAG=gwh TAG=gwh
@ -31,6 +31,8 @@ git pull --all
cp -R $REPOSITORY $TMP/ cp -R $REPOSITORY $TMP/
cd $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 [ "x$VERSION" == "xtrunk" ] && VERSION="git_$(git log -1 --format=%h_%ad --date=format:%Y.%m.%d)" || git checkout $VERSION
cargo build --release cargo build --release

View file

@ -2,7 +2,7 @@
# variables # variables
GITHUB_REPO=ducaale/ht 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} BUILD=${BUILD:-1}
TAG=gwh TAG=gwh
@ -31,6 +31,8 @@ git pull --all
cp -R $REPOSITORY $TMP/ cp -R $REPOSITORY $TMP/
cd $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 [ "x$VERSION" == "xtrunk" ] && VERSION="git_$(git log -1 --format=%h_%ad --date=format:%Y.%m.%d)" || git checkout $VERSION
cargo build --release cargo build --release

View file

@ -34,6 +34,8 @@ git pull --all
cp -R $REPOSITORY $TMP/$PRGNAM cp -R $REPOSITORY $TMP/$PRGNAM
cd $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 [ "x$VERSION" == "xtrunk" ] && VERSION="git_$(git log -1 --format=%h_%ad --date=format:%Y.%m.%d)" || git checkout $VERSION
# installation # installation

View file

@ -2,7 +2,7 @@
# variables # variables
GITHUB_REPO=sharkdp/hyperfine 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} BUILD=${BUILD:-1}
TAG=gwh TAG=gwh
@ -31,6 +31,8 @@ git pull --all
cp -R $REPOSITORY $TMP/ cp -R $REPOSITORY $TMP/
cd $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 [ "x$VERSION" == "xtrunk" ] && VERSION="git_$(git log -1 --format=%h_%ad --date=format:%Y.%m.%d)" || git checkout $VERSION
cargo build --release cargo build --release

View file

@ -2,7 +2,7 @@
# variables # variables
GITHUB_REPO=crystal-community/icr 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} BUILD=${BUILD:-1}
TAG=gwh TAG=gwh
@ -30,6 +30,8 @@ git pull --all
cp -R $REPOSITORY $TMP/$PRGNAM cp -R $REPOSITORY $TMP/$PRGNAM
cd $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 [ "x$VERSION" == "xtrunk" ] && VERSION="git_$(git log -1 --format=%h_%ad --date=format:%Y.%m.%d)" || git checkout $VERSION
make make

View file

@ -30,6 +30,8 @@ git pull --all
cp -R $REPOSITORY $TMP/ cp -R $REPOSITORY $TMP/
cd $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 [ "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 make install DESTDIR=$PKG prefix=$PREFIX mandir=$PREFIX/man

View file

@ -30,6 +30,8 @@ git pull --all
cp -R $REPOSITORY $TMP/ cp -R $REPOSITORY $TMP/
cd $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 [ "x$VERSION" == "xtrunk" ] && VERSION="git_$(git log -1 --format=%h_%ad --date=format:%Y.%m.%d)" || git checkout $VERSION
cargo build --release cargo build --release

View file

@ -7,7 +7,7 @@ CWD=$(pwd)
PRGNAM=$(basename $CWD) PRGNAM=$(basename $CWD)
GITHUB_REPO=ledger/ledger 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)} ARCH=${ARCH:-$(uname -m)}
BUILD=${BUILD:-3} BUILD=${BUILD:-3}
TAG=${TAG:-gwh} 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 \) \ \( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
-exec chmod 644 {} \; -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 [ "x$VERSION" == "xtrunk" ] && VERSION="git_$(git log -1 --format=%h_%ad --date=format:%Y.%m.%d)" || git checkout $VERSION
./acprep pull ./acprep pull

View file

@ -2,7 +2,7 @@
# variables # variables
GITHUB_REPO=Peltoche/lsd 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} BUILD=${BUILD:-1}
TAG=gwh TAG=gwh
@ -31,6 +31,8 @@ git pull --all
cp -R $REPOSITORY $TMP/ cp -R $REPOSITORY $TMP/
cd $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 [ "x$VERSION" == "xtrunk" ] && VERSION="git_$(git log -1 --format=%h_%ad --date=format:%Y.%m.%d)" || git checkout $VERSION
cargo build --release cargo build --release

View file

@ -5,7 +5,7 @@ CWD=$(pwd)
PRGNAM=$(basename $CWD) PRGNAM=$(basename $CWD)
GITHUB_REPO=axkibe/lsyncd 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)} ARCH=${ARCH:-$(uname -m)}
BUILD=1 BUILD=1
@ -31,6 +31,8 @@ cd $TMP
cp -R $REPOSITORY $TMP/$PRGNAM-$VERSION cp -R $REPOSITORY $TMP/$PRGNAM-$VERSION
cd $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 [ "x$VERSION" == "xtrunk" ] && VERSION="git_$(git log -1 --format=%h_%ad --date=format:%Y.%m.%d)" || git checkout $VERSION
# configuration # configuration

View file

@ -2,7 +2,7 @@
# variables # variables
GITHUB_REPO=lunaryorn/mdcat 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} BUILD=${BUILD:-1}
TAG=gwh TAG=gwh
@ -31,6 +31,8 @@ git pull --all
cp -R $REPOSITORY $TMP/ cp -R $REPOSITORY $TMP/
cd $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 [ "x$VERSION" == "xtrunk" ] && VERSION="git_$(git log -1 --format=%h_%ad --date=format:%Y.%m.%d)" || git checkout $VERSION
cargo build --release cargo build --release

View file

@ -26,7 +26,7 @@
PRGNAM=motion PRGNAM=motion
GITHUB_REPO=Motion-Project/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} BUILD=${BUILD:-1}
TAG=${TAG:-gwh} TAG=${TAG:-gwh}
@ -67,6 +67,8 @@ git pull --all
cp -R $REPOSITORY $PRGNAM cp -R $REPOSITORY $PRGNAM
cd $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 [ "x$VERSION" == "xtrunk" ] && VERSION="git_$(git log -1 --format=%h_%ad --date=format:%Y.%m.%d)" || git checkout $VERSION
chown -R root:root . chown -R root:root .
find -L . \ find -L . \

View file

@ -2,7 +2,7 @@
# variables # variables
GITHUB_REPO=nushell/nushell 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} BUILD=${BUILD:-1}
TAG=gwh TAG=gwh
@ -31,6 +31,8 @@ git pull --all
cp -R $REPOSITORY $TMP/ cp -R $REPOSITORY $TMP/
cd $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 [ "x$VERSION" == "xtrunk" ] && VERSION="git_$(git log -1 --format=%h_%ad --date=format:%Y.%m.%d)" || git checkout $VERSION
cargo build --release cargo build --release

View file

@ -2,7 +2,7 @@
# variables # variables
GITHUB_REPO=dalance/procs 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} BUILD=${BUILD:-1}
TAG=gwh TAG=gwh
@ -31,6 +31,8 @@ git pull --all
cp -R $REPOSITORY $TMP/ cp -R $REPOSITORY $TMP/
cd $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 [ "x$VERSION" == "xtrunk" ] && VERSION="git_$(git log -1 --format=%h_%ad --date=format:%Y.%m.%d)" || git checkout $VERSION
cargo build --release cargo build --release

View file

@ -2,7 +2,7 @@
# variables # variables
GITHUB_REPO=BurntSushi/ripgrep 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} BUILD=${BUILD:-1}
TAG=gwh TAG=gwh
@ -31,6 +31,8 @@ git pull --all
cp -R $REPOSITORY $TMP/ cp -R $REPOSITORY $TMP/
cd $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 [ "x$VERSION" == "xtrunk" ] && VERSION="git_$(git log -1 --format=%h_%ad --date=format:%Y.%m.%d)" || git checkout $VERSION
cargo build --release cargo build --release

View file

@ -2,7 +2,7 @@
# variables # variables
GITHUB_REPO=rust-lang/rustup 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} BUILD=${BUILD:-1}
TAG=gwh TAG=gwh
@ -31,6 +31,8 @@ git pull --all
cp -R $REPOSITORY $TMP/ cp -R $REPOSITORY $TMP/
cd $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 [ "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 cargo build --release --features no-self-update

View file

@ -2,7 +2,7 @@
# variables # variables
GITHUB_REPO=chmln/sd 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} BUILD=${BUILD:-1}
TAG=gwh TAG=gwh
@ -31,6 +31,8 @@ git pull --all
cp -R $REPOSITORY $TMP/ cp -R $REPOSITORY $TMP/
cd $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 [ "x$VERSION" == "xtrunk" ] && VERSION="git_$(git log -1 --format=%h_%ad --date=format:%Y.%m.%d)" || git checkout $VERSION
cargo build --release cargo build --release

View file

@ -2,7 +2,7 @@
# variables # variables
GITHUB_REPO=starship/starship 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} BUILD=${BUILD:-1}
TAG=gwh TAG=gwh
@ -31,6 +31,8 @@ git pull --all
cp -R $REPOSITORY $TMP/ cp -R $REPOSITORY $TMP/
cd $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 [ "x$VERSION" == "xtrunk" ] && VERSION="git_$(git log -1 --format=%h_%ad --date=format:%Y.%m.%d)" || git checkout $VERSION
cargo build --release cargo build --release

View file

@ -30,6 +30,8 @@ git pull --all
cp -R $REPOSITORY $TMP/ cp -R $REPOSITORY $TMP/
cd $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 [ "x$VERSION" == "xtrunk" ] && VERSION="git_$(git log -1 --format=%h_%ad --date=format:%Y.%m.%d)" || git checkout $VERSION
autoconf autoconf

View file

@ -2,7 +2,7 @@
# variables # variables
GITHUB_REPO=dbrgn/tealdeer 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} BUILD=${BUILD:-1}
TAG=gwh TAG=gwh
@ -31,6 +31,8 @@ git pull --all
cp -R $REPOSITORY $TMP/ cp -R $REPOSITORY $TMP/
cd $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 [ "x$VERSION" == "xtrunk" ] && VERSION="git_$(git log -1 --format=%h_%ad --date=format:%Y.%m.%d)" || git checkout $VERSION
cargo build --release cargo build --release

View file

@ -2,7 +2,7 @@
# variables # variables
GITHUB_REPO=alexhallam/tv 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} BUILD=${BUILD:-1}
TAG=gwh TAG=gwh
@ -31,6 +31,8 @@ git pull --all
cp -R $REPOSITORY $TMP/ cp -R $REPOSITORY $TMP/
cd $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 [ "x$VERSION" == "xtrunk" ] && VERSION="git_$(git log -1 --format=%h_%ad --date=format:%Y.%m.%d)" || git checkout $VERSION
cargo build --release cargo build --release

View file

@ -2,7 +2,7 @@
# variables # variables
GITHUB_REPO=atanunq/viu 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} BUILD=${BUILD:-1}
TAG=gwh TAG=gwh
@ -31,6 +31,8 @@ git pull --all
cp -R $REPOSITORY $TMP/ cp -R $REPOSITORY $TMP/
cd $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 [ "x$VERSION" == "xtrunk" ] && VERSION="git_$(git log -1 --format=%h_%ad --date=format:%Y.%m.%d)" || git checkout $VERSION
cargo build --release cargo build --release

View file

@ -2,7 +2,7 @@
# variables # variables
GITHUB_REPO=Valloric/ycmd 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} BUILD=${BUILD:-1}
TAG=gwh TAG=gwh
@ -31,6 +31,8 @@ git pull --all
cp -R $REPOSITORY $TMP/ cp -R $REPOSITORY $TMP/
cd $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 [ "x$VERSION" == "xtrunk" ] && VERSION="git_$(git log -1 --format=%h_%ad --date=format:%Y.%m.%d)" || git checkout $VERSION
git submodule update --init --recursive git submodule update --init --recursive

View file

@ -2,7 +2,7 @@
# variables # variables
GITHUB_REPO=cjbassi/ytop 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} BUILD=${BUILD:-1}
TAG=gwh TAG=gwh
@ -31,6 +31,8 @@ git pull --all
cp -R $REPOSITORY $TMP/ cp -R $REPOSITORY $TMP/
cd $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 [ "x$VERSION" == "xtrunk" ] && VERSION="git_$(git log -1 --format=%h_%ad --date=format:%Y.%m.%d)" || git checkout $VERSION
cargo build --release cargo build --release

View file

@ -5,7 +5,7 @@ CWD=$(pwd)
PRGNAM=$(basename $CWD) PRGNAM=$(basename $CWD)
GITHUB_REPO=crystal-ameba/ameba 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)} ARCH=${ARCH:-$(uname -m)}
BUILD=1 BUILD=1
@ -31,6 +31,8 @@ cd $TMP
cp -R $REPOSITORY $TMP/$PRGNAM cp -R $REPOSITORY $TMP/$PRGNAM
cd $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 [ "x$VERSION" == "xtrunk" ] && VERSION="git_$(git log -1 --format=%h_%ad --date=format:%Y.%m.%d)" || git checkout $VERSION
# compilation # compilation

View file

@ -12,7 +12,7 @@ PKG=$TMP/pkg-$PRGNAM
REPOSITORY=/home/installs/SlackBuilds/repositories/$PRGNAM REPOSITORY=/home/installs/SlackBuilds/repositories/$PRGNAM
GITHUB_REPO=postmodern/chruby 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' ARCH='noarch'
BUILD=1 BUILD=1
@ -34,6 +34,8 @@ rm -fr $PKG $TMP/$PRGNAM
cp -R $REPOSITORY $TMP/$PRGNAM cp -R $REPOSITORY $TMP/$PRGNAM
cd $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 [ "x$VERSION" == "xtrunk" ] && VERSION="git_$(git log -1 --format=%h_%ad --date=format:%Y.%m.%d)" || git checkout $VERSION
# compilation # compilation

View file

@ -6,7 +6,7 @@ CWD=$(pwd)
PRGNAM=$(basename $CWD) PRGNAM=$(basename $CWD)
ARCH=$(uname -m) ARCH=$(uname -m)
GITHUB_REPO=crystal-lang/crystal 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} REPOSITORY=${REPOSITORY:-/home/installs/SlackBuilds/repositories/$PRGNAM}
BUILD=1 BUILD=1
@ -28,6 +28,8 @@ git pull --all
cp -R $REPOSITORY $TMP/ cp -R $REPOSITORY $TMP/
cd $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 [ "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 make -j$(nproc) interpreter=1 release=1
@ -57,6 +59,8 @@ git pull --all
cp -R $SHARDS_REPOSITORY $TMP/ cp -R $SHARDS_REPOSITORY $TMP/
cd $TMP/$SHARDS_PRGNAM/ 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 [ "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 make -j$(nproc) release=1

View file

@ -30,6 +30,8 @@ git pull --all
cp -R $REPOSITORY $TMP/ cp -R $REPOSITORY $TMP/
cd $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 [ "x$VERSION" == "xtrunk" ] && VERSION="git_$(git log -1 --format=%h_%ad --date=format:%Y.%m.%d)" || git checkout $VERSION
make make

View file

@ -29,6 +29,8 @@ cd $TMP
[ -e $TMP/$PRGNAM ] && rm -fr $TMP/$PRGNAM [ -e $TMP/$PRGNAM ] && rm -fr $TMP/$PRGNAM
cp -R $REPOSITORY $TMP/$PRGNAM cp -R $REPOSITORY $TMP/$PRGNAM
cd $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 [ "x$VERSION" == "xtrunk" ] && VERSION="git_$(git log -1 --format=%h_%ad --date=format:%Y.%m.%d)" || git checkout $VERSION
./build.sh update ./build.sh update

View file

@ -30,6 +30,8 @@ cd $TMP
cp -R $REPOSITORY $TMP/$PRGNAM-$VERSION cp -R $REPOSITORY $TMP/$PRGNAM-$VERSION
cd $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 [ "x$VERSION" == "xtrunk" ] && VERSION="git_$(git log -1 --format=%h_%ad --date=format:%Y.%m.%d)" || git checkout $VERSION
# configuration # configuration

View file

@ -32,6 +32,8 @@ git pull --all
cp -R $REPOSITORY $TMP/ cp -R $REPOSITORY $TMP/
cd $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 rev-list --count master)_git_$(git log -1 --format=%h_%ad --date=format:%Y.%m.%d)" || git checkout $VERSION [ "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 # https://www.hpmuseum.org/forum/thread-17667-post-154012.html#pid154012

View file

@ -28,7 +28,7 @@
PRGNAM=nodejs-bin PRGNAM=nodejs-bin
SRCNAM=node SRCNAM=node
GITHUB_REPO=nodejs/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} BUILD=${BUILD:-1}
TAG=${TAG:-gwh} TAG=${TAG:-gwh}

View file

@ -2,7 +2,7 @@
# variables # variables
GITHUB_REPO=rbspy/rbspy 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} BUILD=${BUILD:-1}
TAG=gwh TAG=gwh
@ -31,6 +31,8 @@ git pull --all
cp -R $REPOSITORY $TMP/ cp -R $REPOSITORY $TMP/
cd $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 [ "x$VERSION" == "xtrunk" ] && VERSION="git_$(git log -1 --format=%h_%ad --date=format:%Y.%m.%d)" || git checkout $VERSION
cargo build --release cargo build --release

View file

@ -29,6 +29,8 @@ cd $TMP
cp -R $REPOSITORY $TMP/$PRGNAM cp -R $REPOSITORY $TMP/$PRGNAM
cd $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 [ "x$VERSION" == "xtrunk" ] && VERSION="git_$(git log -1 --format=%h_%ad --date=format:%Y.%m.%d)" || git checkout $VERSION
make PREFIX=$PREFIX make PREFIX=$PREFIX

View file

@ -5,7 +5,7 @@ CWD=$(pwd)
PRGNAM=$(basename $CWD) PRGNAM=$(basename $CWD)
GITHUB_REPO=louisrubet/rpn 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)} ARCH=${ARCH:-$(uname -m)}
BUILD=1 BUILD=1
@ -31,6 +31,8 @@ cd $TMP
cp -R $REPOSITORY $TMP/$PRGNAM-$VERSION cp -R $REPOSITORY $TMP/$PRGNAM-$VERSION
cd $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 [ "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@ .*) sed -i 's|git@github.com:|https://github.com/|g' $(grep -l git@ .*)

View file

@ -2,7 +2,7 @@
# variables # variables
GITHUB_REPO=${GITHUB_REPO} 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 TAG=gwh
TMP=/tmp/$TAG TMP=/tmp/$TAG
@ -31,6 +31,8 @@ rm -fr $PKG $TMP/$PRGNAM
cp -R $REPOSITORY $TMP/$PRGNAM cp -R $REPOSITORY $TMP/$PRGNAM
cd $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 [ "x$VERSION" == "xtrunk" ] && VERSION="git_$(git log -1 --format=%h_%ad --date=format:%Y.%m.%d)" || git checkout $VERSION
# compilation # compilation

View file

@ -5,7 +5,7 @@ CWD=$(pwd)
PRGNAM=$(basename $CWD) PRGNAM=$(basename $CWD)
GITHUB_REPO=crystal-lang-tools/scry 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)} ARCH=${ARCH:-$(uname -m)}
BUILD=1 BUILD=1
@ -31,6 +31,8 @@ cd $TMP
cp -R $REPOSITORY $TMP/$PRGNAM-$VERSION cp -R $REPOSITORY $TMP/$PRGNAM-$VERSION
cd $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 [ "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 sed -i 's|Errno|File::Error|g' src/scry/text_document.cr

View file

@ -2,7 +2,7 @@
# variables # variables
GITHUB_REPO=mthom/scryer-prolog 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} BUILD=${BUILD:-1}
TAG=gwh TAG=gwh
@ -31,6 +31,8 @@ git pull --all
cp -R $REPOSITORY $TMP/ cp -R $REPOSITORY $TMP/
cd $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 [ "x$VERSION" == "xtrunk" ] && VERSION="git_$(git log -1 --format=%h_%ad --date=format:%Y.%m.%d)" || git checkout $VERSION
cargo build --release cargo build --release

View file

@ -5,7 +5,7 @@ CWD=$(pwd)
PRGNAM=$(basename $CWD) PRGNAM=$(basename $CWD)
GITHUB_REPO=WebAssembly/wabt 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)} ARCH=${ARCH:-$(uname -m)}
BUILD=1 BUILD=1
@ -31,6 +31,8 @@ cd $TMP
cp -R $REPOSITORY $TMP/$PRGNAM-$VERSION cp -R $REPOSITORY $TMP/$PRGNAM-$VERSION
cd $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 [ "x$VERSION" == "xtrunk" ] && VERSION="git_$(git log -1 --format=%h_%ad --date=format:%Y.%m.%d)" || git checkout $VERSION
# configuration # configuration

View file

@ -10,7 +10,7 @@ PRGNAM=$(basename $CWD)
PKG=$TMP/pkg-$PRGNAM PKG=$TMP/pkg-$PRGNAM
GITHUB_REPO=krakjoe/apcu 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 EXT=tar.gz
@ -37,6 +37,8 @@ git pull --all
cp -R $REPOSITORY $PRGNAM cp -R $REPOSITORY $PRGNAM
cd $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 [ "x$VERSION" == "xtrunk" ] && VERSION="git_$(git log -1 --format=%h_%ad --date=format:%Y.%m.%d)" || git checkout $VERSION
# configuration # configuration

View file

@ -2,7 +2,7 @@
# variables # variables
GITHUB_REPO=emersion/basu 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 BUILD=1
TAG=gwh TAG=gwh
@ -31,6 +31,8 @@ git pull --all
cp -R $REPOSITORY $TMP/ cp -R $REPOSITORY $TMP/
cd $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 [ "x$VERSION" == "xtrunk" ] && VERSION="git_$( cd $REPOSITORY && git log -1 --format=%h_%ad --date=format:%Y.%m.%d )" || git checkout $VERSION
meson build/ meson build/

View file

@ -5,7 +5,7 @@ CWD=$(pwd)
PRGNAM=$(basename $CWD) PRGNAM=$(basename $CWD)
GITHUB_REPO=fmtlib/fmt 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)} ARCH=${ARCH:-$(uname -m)}
BUILD=1 BUILD=1
@ -31,6 +31,8 @@ cd $TMP
cp -R $REPOSITORY $TMP/$PRGNAM cp -R $REPOSITORY $TMP/$PRGNAM
cd $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 [ "x$VERSION" == "xtrunk" ] && VERSION="git_$(git log -1 --format=%h_%ad --date=format:%Y.%m.%d)" || git checkout $VERSION
# configuration # configuration

View file

@ -7,7 +7,7 @@ CWD=$(pwd)
PRGNAM=$(basename $CWD) PRGNAM=$(basename $CWD)
GITHUB_REPO=HowardHinnant/date 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)} ARCH=${ARCH:-$(uname -m)}
BUILD=1 BUILD=1
@ -36,6 +36,8 @@ git pull --all
cp -R $REPOSITORY $TMP/$PRGNAM cp -R $REPOSITORY $TMP/$PRGNAM
cd $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 [ "x$VERSION" == "xtrunk" ] && VERSION="git_$( cd $REPOSITORY && git log -1 --format=%h_%ad --date=format:%Y.%m.%d )" || git checkout $VERSION
# configuration # configuration

View file

@ -7,7 +7,7 @@ CWD=$(pwd)
PRGNAM=$(basename $CWD) PRGNAM=$(basename $CWD)
GITHUB_REPO=vstakhov/libucl 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)} ARCH=${ARCH:-$(uname -m)}
BUILD=1 BUILD=1
@ -36,6 +36,8 @@ git pull --all
cp -R $REPOSITORY $TMP/$PRGNAM cp -R $REPOSITORY $TMP/$PRGNAM
cd $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 [ "x$VERSION" == "xtrunk" ] && VERSION="git_$(git log -1 --format=%h_%ad --date=format:%Y.%m.%d)" || git checkout $VERSION
# configuration # configuration

View file

@ -34,6 +34,8 @@ git pull --all
cp -R $REPOSITORY $TMP/$PRGNAM cp -R $REPOSITORY $TMP/$PRGNAM
cd $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 [ "x$VERSION" == "xtrunk" ] && VERSION="git_$(git log -1 --format=%h_%ad --date=format:%Y.%m.%d)" || git checkout $VERSION
# installation # installation

View file

@ -34,6 +34,8 @@ git pull --all
cp -R $REPOSITORY $TMP/$PRGNAM cp -R $REPOSITORY $TMP/$PRGNAM
cd $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 [ "x$VERSION" == "xtrunk" ] && VERSION="git_$(git log -1 --format=%h_%ad --date=format:%Y.%m.%d)" || git checkout $VERSION
# installation # installation

View file

@ -2,7 +2,7 @@
# variables # variables
GITHUB_REPO=raysan5/raylib 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 BUILD=1
TAG=gwh TAG=gwh
@ -34,6 +34,8 @@ git pull --all
cp -R $REPOSITORY $TMP/ cp -R $REPOSITORY $TMP/
cd $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 [ "x$VERSION" == "xtrunk" ] && VERSION="git_$(git log -1 --format=%h_%ad --date=format:%Y.%m.%d)" || git checkout $VERSION
cd src cd src

View file

@ -5,7 +5,7 @@ CWD=$(pwd)
PRGNAM=$(basename $CWD) PRGNAM=$(basename $CWD)
GITHUB_REPO=gabime/spdlog 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)} ARCH=${ARCH:-$(uname -m)}
BUILD=1 BUILD=1
@ -32,6 +32,8 @@ cd $TMP
cp -R $REPOSITORY $TMP/$PRGNAM cp -R $REPOSITORY $TMP/$PRGNAM
cd $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 [ "x$VERSION" == "xtrunk" ] && VERSION="git_$(git log -1 --format=%h_%ad --date=format:%Y.%m.%d)" || git checkout $VERSION
# configuration # configuration

View file

@ -34,6 +34,8 @@ git pull --all
cp -R $REPOSITORY $TMP/$PRGNAM cp -R $REPOSITORY $TMP/$PRGNAM
cd $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 [ "x$VERSION" == "xtrunk" ] && VERSION="git_$(git log -1 --format=%h_%ad --date=format:%Y.%m.%d)" || git checkout $VERSION
# installation # installation

View file

@ -5,7 +5,7 @@ CWD=$(pwd)
PRGNAM=awesome PRGNAM=awesome
GITHUB_REPO=awesomeWM/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)} ARCH=${ARCH:-$(uname -m)}
BUILD=1 BUILD=1

View file

@ -3,7 +3,7 @@
CWD=$(pwd) CWD=$(pwd)
GITHUB_REPO=pavouk/lgi 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 # default settings
PRGNAM=$(basename $CWD) PRGNAM=$(basename $CWD)

View file

@ -38,6 +38,8 @@ cd $TMP
cp -R $REPOSITORIES/$PRGNAM $TMP/$PRGNAM cp -R $REPOSITORIES/$PRGNAM $TMP/$PRGNAM
cd $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 [ "x$VERSION" == "xtrunk" ] && VERSION="git_$(git log -1 --format=%h_%ad --date=format:%Y.%m.%d)" || git checkout $VERSION
# configuration # configuration

View file

@ -2,7 +2,7 @@
# variables # variables
GITHUB_REPO=janeczku/calibre-web 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_USER=${RUNNING_USER:-gwh}
RUNNING_GROUP=${RUNNING_GROUP:-users} 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 sed -i "s|RUNNING_USER|$RUNNING_USER|" $PKG/etc/rc.d/rc.$PRGNAM
cd $PKG/opt/$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 [ "x$VERSION" == "xtrunk" ] && VERSION="git_$(git log -1 --format=%h_%ad --date=format:%Y.%m.%d)" || git checkout $VERSION
# change default password # change default password

View file

@ -3,7 +3,7 @@
CWD=$(pwd) CWD=$(pwd)
GITHUB_REPO=pluxml/PluXml 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) PRGNAM=$(basename $CWD)
ARCH="noarch" # hardcode ARCH ARCH="noarch" # hardcode ARCH
@ -34,6 +34,8 @@ REPOSITORY=/home/installs/SlackBuilds/repositories/$PRGNAM
cp -R $REPOSITORY $PKG/$VHOSTROOT/htdocs cp -R $REPOSITORY $PKG/$VHOSTROOT/htdocs
cd $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 [ "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 rm -fr $PKG/$VHOSTROOT/htdocs/.git

View file

@ -2,7 +2,7 @@
# variables # variables
GITHUB_REPO=Hjdskes/cage 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 BUILD=1
TAG=gwh TAG=gwh
@ -31,6 +31,8 @@ git pull --all
cp -R $REPOSITORY $TMP/ cp -R $REPOSITORY $TMP/
cd $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 [ "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 # wget -c https://github.com/Hjdskes/cage/pull/217.patch

View file

@ -29,6 +29,8 @@ git pull --all
cp -R $REPOSITORY $TMP/ cp -R $REPOSITORY $TMP/
cd $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 [ "x$VERSION" == "xtrunk" ] && VERSION="git_$(git log -1 --format=%h_%ad --date=format:%Y.%m.%d)" || git checkout $VERSION
meson setup \ meson setup \

View file

@ -2,7 +2,7 @@
# variables # variables
GITHUB_REPO=eXeC64/imv 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 BUILD=1
@ -32,6 +32,8 @@ git pull --all
cp -R $REPOSITORY $TMP/ cp -R $REPOSITORY $TMP/
cd $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 [ "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/ meson setup --prefix /usr --mandir /usr/man/ build/

View file

@ -2,7 +2,7 @@
# variables # variables
GITHUB_REPO=emersion/kanshi 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 BUILD=1
@ -32,6 +32,8 @@ git pull --all
cp -R $REPOSITORY $TMP/ cp -R $REPOSITORY $TMP/
cd $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 [ "x$VERSION" == "xtrunk" ] && VERSION="git_$(git log -1 --format=%h_%ad --date=format:%Y.%m.%d)" || git checkout $VERSION
meson setup \ meson setup \

View file

@ -30,6 +30,8 @@ git pull --all
cp -R $REPOSITORY $TMP/ cp -R $REPOSITORY $TMP/
cd $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 [ "x$VERSION" == "xtrunk" ] && VERSION="git_$(git log -1 --format=%h_%ad --date=format:%Y.%m.%d)" || git checkout $VERSION
make make

View file

@ -2,7 +2,7 @@
# variables # variables
GITHUB_REPO=emersion/mako 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 BUILD=1
@ -32,6 +32,8 @@ git pull --all
cp -R $REPOSITORY $TMP/ cp -R $REPOSITORY $TMP/
cd $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 [ "x$VERSION" == "xtrunk" ] && VERSION="git_$(git log -1 --format=%h_%ad --date=format:%Y.%m.%d)" || git checkout $VERSION
meson setup \ meson setup \

View file

@ -2,7 +2,7 @@
# variables # variables
GITHUB_REPO=qtile/qtile 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 BUILD=1
@ -32,6 +32,8 @@ git pull --all
cp -R $REPOSITORY $TMP/ cp -R $REPOSITORY $TMP/
cd $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 [ "x$VERSION" == "xtrunk" ] && VERSION="git_$(git log -1 --format=%h_%ad --date=format:%Y.%m.%d)" || git checkout $VERSION
# installation # installation

View file

@ -2,7 +2,7 @@
# variables # variables
GITHUB_REPO=ifreund/river 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 BUILD=1
@ -33,6 +33,8 @@ git submodule update
cp -R $REPOSITORY $TMP/ cp -R $REPOSITORY $TMP/
cd $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 [ "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 zig build -Dxwayland -Drelease-safe --prefix $PKG$PREFIX install

View file

@ -1,7 +1,7 @@
#!/bin/bash #!/bin/bash
# variables # variables
VERSION=${VERSION:-"trunk"} VERSION=${VERSION:-"latest"}
BUILD=1 BUILD=1
TAG=gwh TAG=gwh
@ -30,6 +30,8 @@ git pull --all
cp -R $REPOSITORY $TMP/ cp -R $REPOSITORY $TMP/
cd $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 [ "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/ meson setup --prefix /usr --mandir /usr/man/ build/
@ -73,4 +75,4 @@ EOF
# empaquetage # empaquetage
rm -f $PKG/{,usr/}lib$(uname -m | grep -o 64)/*.la 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

View file

@ -2,7 +2,7 @@
# variables # variables
GITHUB_REPO=swaywm/swaybg 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 BUILD=1
@ -32,6 +32,8 @@ git pull --all
cp -R $REPOSITORY $TMP/ cp -R $REPOSITORY $TMP/
cd $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 [ "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/ meson setup --prefix /usr --mandir /usr/man/ build/

View file

@ -2,7 +2,7 @@
# variables # variables
GITHUB_REPO=swaywm/swayidle 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 BUILD=1
@ -32,6 +32,8 @@ git pull --all
cp -R $REPOSITORY $TMP/ cp -R $REPOSITORY $TMP/
cd $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 [ "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/ meson setup --prefix /usr --mandir /usr/man/ build/

View file

@ -2,7 +2,7 @@
# variables # variables
GITHUB_REPO=swaywm/swaylock 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 BUILD=1
@ -32,6 +32,8 @@ git pull --all
cp -R $REPOSITORY $TMP/ cp -R $REPOSITORY $TMP/
cd $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 [ "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/ meson setup --prefix /usr --mandir /usr/man/ build/

View file

@ -30,6 +30,8 @@ git pull --all
cp -R $REPOSITORY $TMP/ cp -R $REPOSITORY $TMP/
cd $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 [ "x$VERSION" == "xtrunk" ] && VERSION="git_$(git log -1 --format=%h_%ad --date=format:%Y.%m.%d)" || git checkout $VERSION
cargo build --release cargo build --release

View file

@ -2,7 +2,7 @@
# variables # variables
GITHUB_REPO=Alexays/Waybar 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 BUILD=1
@ -32,6 +32,8 @@ git pull --all
cp -R $REPOSITORY $TMP/ cp -R $REPOSITORY $TMP/
cd $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 [ "x$VERSION" == "xtrunk" ] && VERSION="git_$(git log -1 --format=%h_%ad --date=format:%Y.%m.%d)" || git checkout $VERSION
meson setup \ meson setup \

View file

@ -30,6 +30,8 @@ git pull --all
cp -R $REPOSITORY $TMP/ cp -R $REPOSITORY $TMP/
cd $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 [ "x$VERSION" == "xtrunk" ] && VERSION="git_$(git log -1 --format=%h_%ad --date=format:%Y.%m.%d)" || git checkout $VERSION
make make

View file

@ -2,7 +2,7 @@
# variables # variables
GITHUB_REPO=emersion/wlr-randr 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 BUILD=1
@ -32,6 +32,8 @@ git pull --all
cp -R $REPOSITORY $TMP/ cp -R $REPOSITORY $TMP/
cd $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 [ "x$VERSION" == "xtrunk" ] && VERSION="git_$(git log -1 --format=%h_%ad --date=format:%Y.%m.%d)" || git checkout $VERSION
meson setup \ meson setup \

View file

@ -2,7 +2,7 @@
# variables # variables
GITHUB_REPO=jwilm/alacritty 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} BUILD=${BUILD:-1}
TAG=gwh TAG=gwh
@ -31,6 +31,8 @@ git pull --all
cp -R $REPOSITORY $TMP/ cp -R $REPOSITORY $TMP/
cd $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 [ "x$VERSION" == "xtrunk" ] && VERSION="git_$(git log -1 --format=%h_%ad --date=format:%Y.%m.%d)" || git checkout $VERSION
cargo build --release cargo build --release

View file

@ -3,7 +3,7 @@ set -x
PRGNAM=$(basename $(pwd)) PRGNAM=$(basename $(pwd))
GITHUB_REPO=sagb/alttab 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 BUILD=1
@ -34,6 +34,8 @@ cp -R $REPOSITORY $TMP/$PRGNAM
# Preparation # Preparation
cd $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 [ "x$VERSION" == "xtrunk" ] && VERSION="git_$(git log -1 --format=%h_%ad --date=format:%Y.%m.%d)" || git checkout $VERSION
chown -R root:root . chown -R root:root .

View file

@ -5,7 +5,7 @@ CWD=$(pwd)
PRGNAM=$(basename $(pwd)) PRGNAM=$(basename $(pwd))
GITHUB_REPO=Hummer12007/brightnessctl 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)} ARCH=${ARCH:-$(uname -m)}
BUILD=1 BUILD=1
@ -32,6 +32,8 @@ cd $TMP
cp -R $REPOSITORIES/$PRGNAM $TMP/$PRGNAM cp -R $REPOSITORIES/$PRGNAM $TMP/$PRGNAM
cd $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 [ "x$VERSION" == "xtrunk" ] && VERSION="git_$(git log -1 --format=%h_%ad --date=format:%Y.%m.%d)" || git checkout $VERSION
# compilation # compilation

View file

@ -30,6 +30,8 @@ git pull --all
cp -R $REPOSITORY $TMP/ cp -R $REPOSITORY $TMP/
cd $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 [ "x$VERSION" == "xtrunk" ] && VERSION="git_$(git log -1 --format=%h_%ad --date=format:%Y.%m.%d)" || git checkout $VERSION
./bootstrap ./bootstrap

View file

@ -2,7 +2,7 @@
# variables # variables
GITHUB_REPO=greshake/i3status-rust 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} BUILD=${BUILD:-1}
TAG=gwh TAG=gwh
@ -31,6 +31,8 @@ git pull --all
cp -R $REPOSITORY $TMP/ cp -R $REPOSITORY $TMP/
cd $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 [ "x$VERSION" == "xtrunk" ] && VERSION="git_$(git log -1 --format=%h_%ad --date=format:%Y.%m.%d)" || git checkout $VERSION
cargo build --release --features "pulseaudio" cargo build --release --features "pulseaudio"

View file

@ -2,7 +2,7 @@
# variables # variables
GITHUB_REPO=weclaw1/image-roll 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} BUILD=${BUILD:-1}
TAG=gwh TAG=gwh
@ -31,6 +31,8 @@ git pull --all
cp -R $REPOSITORY $TMP/ cp -R $REPOSITORY $TMP/
cd $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 [ "x$VERSION" == "xtrunk" ] && VERSION="git_$(git log -1 --format=%h_%ad --date=format:%Y.%m.%d)" || git checkout $VERSION
cargo build --release cargo build --release

View file

@ -8,7 +8,7 @@ OUTPUT=/tmp
PRGNAM=$(basename $CWD) PRGNAM=$(basename $CWD)
GITHUB_REPO=kovidgoyal/kitty 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) ARCH=$(uname -m)
BUILD=1 BUILD=1
@ -31,6 +31,8 @@ git pull --all
cp -R $REPOSITORY $TMP/$PRGNAM cp -R $REPOSITORY $TMP/$PRGNAM
cd $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 [ "x$VERSION" == "xtrunk" ] && VERSION="git_$(git log -1 --format=%h_%ad --date=format:%Y.%m.%d)" || git checkout $VERSION
# installation # installation

View file

@ -12,7 +12,7 @@ PKG=$TMP/pkg-$PRGNAM
ARCH=$(uname -m) ARCH=$(uname -m)
BUILD=1 BUILD=1
GITHUB_REPO=leozide/leocad 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 REPOSITORY=/home/installs/SlackBuilds/repositories/$PRGNAM
@ -28,6 +28,8 @@ git pull --all
cp -R $REPOSITORY $TMP/$PRGNAM cp -R $REPOSITORY $TMP/$PRGNAM
cd $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 [ "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 qmake-qt5 DISABLE_UPDATE_CHECK=1 DOCS_DIR=/usr/doc/$PRGNAM MAN_DIR=/usr/man/man1 leocad.pro

View file

@ -5,7 +5,7 @@ CWD=$(pwd)
PRGNAM=$(basename $CWD) PRGNAM=$(basename $CWD)
GITHUB_REPO=nextcloud/desktop 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)} ARCH=${ARCH:-$(uname -m)}
BUILD=1 BUILD=1
@ -33,6 +33,8 @@ git pull --all
cp -R $REPOSITORY $TMP/$PRGNAM cp -R $REPOSITORY $TMP/$PRGNAM
cd $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 [ "x$VERSION" == "xtrunk" ] && VERSION="git_$(git log -1 --format=%h_%ad --date=format:%Y.%m.%d)" || git checkout $VERSION
git submodule update --init --recursive git submodule update --init --recursive

View file

@ -2,7 +2,7 @@
# variables # variables
GITHUB_REPO=polybar/polybar 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} BUILD=${BUILD:-1}
TAG=gwh TAG=gwh
@ -32,6 +32,8 @@ git pull --all
cp -R $REPOSITORY $TMP/ cp -R $REPOSITORY $TMP/
cd $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 [ "x$VERSION" == "xtrunk" ] && VERSION="git_$(git log -1 --format=%h_%ad --date=format:%Y.%m.%d)" || git checkout $VERSION
git submodule init git submodule init

View file

@ -12,7 +12,7 @@ PKG=$TMP/pkg-$PRGNAM
ARCH=$(uname -m) ARCH=$(uname -m)
BUILD=1 BUILD=1
GITHUB_REPO=marazmista/radeon-profile 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 REPOSITORY=/home/installs/SlackBuilds/repositories/$PRGNAM
@ -28,6 +28,8 @@ git pull --all
cp -R $REPOSITORY $TMP/$PRGNAM cp -R $REPOSITORY $TMP/$PRGNAM
cd $TMP/$PRGNAM/$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 [ "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 qmake-qt5 DISABLE_UPDATE_CHECK=1 DOCS_DIR=/usr/doc/$PRGNAM MAN_DIR=/usr/man/man1

View file

@ -2,7 +2,7 @@
# variables # variables
GITHUB_REPO=htrefil/rkvm 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} BUILD=${BUILD:-1}
TAG=gwh TAG=gwh
@ -31,6 +31,8 @@ git pull --all
cp -R $REPOSITORY $TMP/ cp -R $REPOSITORY $TMP/
cd $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 [ "x$VERSION" == "xtrunk" ] && VERSION="git_$(git log -1 --format=%h_%ad --date=format:%Y.%m.%d)" || git checkout $VERSION
cargo build --release cargo build --release

Some files were not shown because too many files have changed in this diff Show more