diff --git a/a/broadcom-bt-firmware/SlackBuild b/a/broadcom-bt-firmware/SlackBuild index c7125205..56ba1117 100755 --- a/a/broadcom-bt-firmware/SlackBuild +++ b/a/broadcom-bt-firmware/SlackBuild @@ -2,7 +2,8 @@ # variables CWD=$(pwd) -VERSION=${VERSION:-"trunk"} +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 BUILD=${BUILD:-1} TAG=gwh @@ -22,7 +23,7 @@ REPOSITORY=${REPOSITORY:=/home/installs/SlackBuilds/repositories/$PRGNAM} rm -fr $PKG # mise en place -[ ! -e $REPOSITORY ] && git clone https://github.com/winterheart/broadcom-bt-firmware.git $REPOSITORY +[ ! -e $REPOSITORY ] && git clone https://github.com/${GITHUB_REPO}.git $REPOSITORY ( cd $REPOSITORY; git pull ) [ "x$VERSION" == "xtrunk" ] && VERSION="git_$(git log -1 --format=%h_%ad --date=format:%Y.%m.%d)" || git checkout $VERSION @@ -56,7 +57,7 @@ $PRGNAM: $PRGNAM: $PRGNAM: $PRGNAM: -$PRGNAM: https://github.com/winterheart/broadcom-bt-firmware +$PRGNAM: https://github.com/${GITHUB_REPO} $PRGNAM: EOF diff --git a/a/pine64-platform-scripts/SlackBuild b/a/pine64-platform-scripts/SlackBuild index 0e94c6d8..a4bab674 100755 --- a/a/pine64-platform-scripts/SlackBuild +++ b/a/pine64-platform-scripts/SlackBuild @@ -3,7 +3,8 @@ # variables CWD=$(pwd) -VERSION=${VERSION:-"trunk"} +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 BUILD=${BUILD:-1} TAG=gwh @@ -23,7 +24,7 @@ REPOSITORY=${REPOSITORY:=/home/installs/SlackBuilds/repositories/$PRGNAM} rm -fr $PKG # mise en place -[ ! -e $REPOSITORY ] && git clone https://github.com/longsleep/build-pine64-image.git $REPOSITORY +[ ! -e $REPOSITORY ] && git clone https://github.com/${GITHUB_REPO}.git $REPOSITORY ( cd $REPOSITORY; git pull ) [ "x$VERSION" == "xtrunk" ] && VERSION="git_$(git log -1 --format=%h_%ad --date=format:%Y.%m.%d)" || git checkout $VERSION @@ -57,7 +58,7 @@ $PRGNAM: $PRGNAM: $PRGNAM: $PRGNAM: -$PRGNAM: https://github.com/longsleep/build-pine64-image +$PRGNAM: https://github.com/${GITHUB_REPO} $PRGNAM: EOF diff --git a/a/rpi-firmware-nonfree/SlackBuild b/a/rpi-firmware-nonfree/SlackBuild index 9f538b13..0b9c3f2c 100755 --- a/a/rpi-firmware-nonfree/SlackBuild +++ b/a/rpi-firmware-nonfree/SlackBuild @@ -3,7 +3,8 @@ # variables CWD=$(pwd) -VERSION=${VERSION:-"trunk"} +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 BUILD=${BUILD:-1} TAG=gwh @@ -23,7 +24,7 @@ REPOSITORY=${REPOSITORY:=/home/installs/SlackBuilds/repositories/$PRGNAM} rm -fr $PKG # mise en place -[ ! -e $REPOSITORY ] && git clone https://github.com/RPi-Distro/firmware-nonfree.git $REPOSITORY +[ ! -e $REPOSITORY ] && git clone https://github.com/${GITHUB_REPO}.git $REPOSITORY ( cd $REPOSITORY; git pull ) [ "x$VERSION" == "xtrunk" ] && VERSION="git_$(git log -1 --format=%h_%ad --date=format:%Y.%m.%d)" || git checkout $VERSION @@ -55,7 +56,7 @@ $PRGNAM: $PRGNAM: $PRGNAM: $PRGNAM: -$PRGNAM: https://github.com/RPi-Distro/firmware-nonfree +$PRGNAM: https://github.com/${GITHUB_REPO} $PRGNAM: EOF diff --git a/ap/amdgpud/SlackBuild b/ap/amdgpud/SlackBuild index 8d09b815..cc1f2e1a 100755 --- a/ap/amdgpud/SlackBuild +++ b/ap/amdgpud/SlackBuild @@ -1,7 +1,8 @@ #!/bin/bash # variables -VERSION=${VERSION:-"trunk"} +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 BUILD=${BUILD:-1} TAG=gwh @@ -24,7 +25,7 @@ mkdir -p $PKG # mise en place cd $TMP -[ ! -e $REPOSITORY ] && git clone https://github.com/Eraden/amdgpud.git $REPOSITORY +[ ! -e $REPOSITORY ] && git clone https://github.com/${GITHUB_REPO}.git $REPOSITORY cd $REPOSITORY git pull --all @@ -70,7 +71,7 @@ $PRGNAM: $PRGNAM: $PRGNAM: $PRGNAM: -$PRGNAM: https://github.com/Eraden/amdgpud +$PRGNAM: https://github.com/${GITHUB_REPO} EOF # empaquetage diff --git a/ap/bandwhich/SlackBuild b/ap/bandwhich/SlackBuild index 4198d195..37794124 100755 --- a/ap/bandwhich/SlackBuild +++ b/ap/bandwhich/SlackBuild @@ -1,7 +1,8 @@ #!/bin/bash # variables -VERSION=${VERSION:-"trunk"} +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 BUILD=${BUILD:-1} TAG=gwh @@ -24,7 +25,7 @@ mkdir -p $PKG # mise en place cd $TMP -[ ! -e $REPOSITORY ] && git clone https://github.com/imsnif/bandwhich.git $REPOSITORY +[ ! -e $REPOSITORY ] && git clone https://github.com/${GITHUB_REPO}.git $REPOSITORY cd $REPOSITORY git pull --all @@ -70,7 +71,7 @@ $PRGNAM: $PRGNAM: $PRGNAM: $PRGNAM: -$PRGNAM: https://github.com/imsnif/bandwhich +$PRGNAM: https://github.com/${GITHUB_REPO} EOF # empaquetage diff --git a/ap/bat/SlackBuild b/ap/bat/SlackBuild index f2a5543e..8a82779d 100755 --- a/ap/bat/SlackBuild +++ b/ap/bat/SlackBuild @@ -1,7 +1,8 @@ #!/bin/bash # variables -VERSION=${VERSION:-"trunk"} +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 BUILD=${BUILD:-1} TAG=gwh @@ -24,7 +25,7 @@ mkdir -p $PKG # mise en place cd $TMP -[ ! -e $REPOSITORY ] && git clone https://github.com/sharkdp/bat.git $REPOSITORY +[ ! -e $REPOSITORY ] && git clone https://github.com/${GITHUB_REPO}.git $REPOSITORY cd $REPOSITORY git pull --all @@ -70,7 +71,7 @@ $PRGNAM: . Automatic paging $PRGNAM: . File concatenation $PRGNAM: $PRGNAM: -$PRGNAM: https://github.com/sharkdp/bat +$PRGNAM: https://github.com/${GITHUB_REPO} EOF # empaquetage diff --git a/ap/bemenu/SlackBuild b/ap/bemenu/SlackBuild deleted file mode 100755 index 2692efb7..00000000 --- a/ap/bemenu/SlackBuild +++ /dev/null @@ -1,78 +0,0 @@ -#!/bin/bash - -set -e - -# variables -VERSION=${VERSION:-"trunk"} -BUILD=${BUILD:-1} - -TAG=gwh -TMP=/tmp/$TAG -CWD=$(pwd) - -PRGNAM=$(basename $CWD) -PKG=$TMP/pkg-$PRGNAM -OUTPUT=${OUTPUT:-/tmp} - -ARCH=${ARCH:-$(uname -m)} - -REPOSITORY=${REPOSITORY:-/home/installs/SlackBuilds/repositories/$PRGNAM} -PREFIX=${PREFIX:-/usr} - -# nettoyage préalable -rm -fr $PKG $TMP/$PRGNAM - -mkdir -p $PKG - -# mise en place -[ ! -e $REPOSITORY ] && git clone https://github.com/Cloudef/bemenu.git $REPOSITORY -cd $REPOSITORY -git pull --all - -mkdir -p $TMP/ -cp -a $REPOSITORY $TMP/ -cd $TMP/$PRGNAM -[ "x$VERSION" == "xtrunk" ] && VERSION="git_$(git log -1 --format=%h_%ad --date=format:%Y.%m.%d)" || git checkout $VERSION - -sed -i 's|-O2| -O2 -fPIC|' GNUmakefile -make clients x11 wayland curses -make install DESTDIR=$PKG PREFIX=$PREFIX mandir=/man/man1 libdir=/lib$(uname -m | grep -o "64") - -# move doc/ to the appropriate location -mkdir -p $PKG$PREFIX/doc/$PRGNAM -cp LICENSE* README.md VERSION $PKG$PREFIX/doc/$PRGNAM - -# correction -cd $PKG -chown -R root:root * - -find $PKG$PREFIX/man -type f -not -name \*.gz -exec gzip -9 {} \; - -# embaumement -mkdir -p $PKG/install - -cat < $PKG/install/slack-desc -# HOW TO EDIT THIS FILE: -# The "handy ruler" below makes it easier to edit a package description. Line -# up the first '|' above the ':' following the base package name, and the '|' -# on the right side marks the last column you can put a character in. You must -# make exactly 11 lines for the formatting to be correct. It's also -# customary to leave one space after the ':'. - - |-----handy-ruler------------------------------------------------------| -$PRGNAM: $PRGNAM (Dynamic menu library and client program inspired by dmenu) -$PRGNAM: -$PRGNAM: -$PRGNAM: -$PRGNAM: -$PRGNAM: -$PRGNAM: -$PRGNAM: -$PRGNAM: -$PRGNAM: https://github.com/Cloudef/bemenu -$PRGNAM: -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 diff --git a/ap/broot/SlackBuild b/ap/broot/SlackBuild deleted file mode 100755 index dbf71d16..00000000 --- a/ap/broot/SlackBuild +++ /dev/null @@ -1,87 +0,0 @@ -#!/bin/bash - -# variables -VERSION=${VERSION:-"trunk"} -BUILD=${BUILD:-1} - -TAG=gwh -TMP=/tmp/$TAG -CWD=$(pwd) - -PRGNAM=$(basename $CWD) -PKG=$TMP/pkg-$PRGNAM -OUTPUT=${OUTPUT:-/tmp} - -ARCH=${ARCH:-$(uname -m)} - -REPOSITORY=${REPOSITORY:-/home/installs/SlackBuilds/repositories/$PRGNAM} -PREFIX=${PREFIX:-/usr} - -# nettoyage préalable -rm -fr $PKG $TMP/$PRGNAM - -mkdir -p $PKG - -# mise en place -cd $TMP -[ ! -e $REPOSITORY ] && git clone https://github.com/Canop/broot.git $REPOSITORY -cd $REPOSITORY -git pull --all - -cp -R $REPOSITORY $TMP/ -cd $TMP/$PRGNAM -[ "x$VERSION" == "xtrunk" ] && VERSION="git_$(git log -1 --format=%h_%ad --date=format:%Y.%m.%d)" || git checkout $VERSION - -cargo build --release - -mkdir -p $PKG$PREFIX/bin -find target/release/ -type f -executable -maxdepth 1 -exec cp {} $PKG$PREFIX/bin/ \; -chmod 755 $PKG$PREFIX/bin/* - -# move doc/ to the appropriate location -mkdir -p $PKG$PREFIX/doc/$PRGNAM -cp LICENSE* *.md $PKG$PREFIX/doc/$PRGNAM - -mkdir -p $PKG$PREFIX/man -cp man/page $PKG$PREFIX/man/${PRGNAM}.1 - -# correction -cd $PKG -chown -R root:root * - -find $PKG$PREFIX/man -type f -not -name \*.gz -exec gzip -9 {} \; - -# embaumement -mkdir -p $PKG/install - -cat < /etc/profile.d/broot.sh.new -[ ! -e /etc/profile.d/broot.sh ] && mv /etc/profile.d/broot.sh.new /etc/profile.d/broot.sh -EOF - -cat < $PKG/install/slack-desc -# HOW TO EDIT THIS FILE: -# The "handy ruler" below makes it easier to edit a package description. Line -# up the first '|' above the ':' following the base package name, and the '|' -# on the right side marks the last column you can put a character in. You must -# make exactly 11 lines for the formatting to be correct. It's also -# customary to leave one space after the ':'. - - |-----handy-ruler------------------------------------------------------| -$PRGNAM: $PRGNAM (A new way to see and navigate directory trees) -$PRGNAM: -$PRGNAM: -$PRGNAM: -$PRGNAM: -$PRGNAM: -$PRGNAM: -$PRGNAM: -$PRGNAM: -$PRGNAM: -$PRGNAM: https://dystroy.org/broot -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 diff --git a/ap/btm/SlackBuild b/ap/btm/SlackBuild index c15a4b63..6bd522b2 100755 --- a/ap/btm/SlackBuild +++ b/ap/btm/SlackBuild @@ -1,7 +1,8 @@ #!/bin/bash # variables -VERSION=${VERSION:-"trunk"} +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 BUILD=${BUILD:-1} TAG=gwh @@ -24,7 +25,7 @@ mkdir -p $PKG # mise en place cd $TMP -[ ! -e $REPOSITORY ] && git clone https://github.com/clementtsang/bottom.git $REPOSITORY +[ ! -e $REPOSITORY ] && git clone https://github.com/${GITHUB_REPO}.git $REPOSITORY cd $REPOSITORY git pull --all @@ -70,7 +71,7 @@ $PRGNAM: $PRGNAM: $PRGNAM: $PRGNAM: -$PRGNAM: https://github.com/clementtsang/bottom +$PRGNAM: https://github.com/${GITHUB_REPO} EOF # empaquetage diff --git a/ap/checkssl/SlackBuild b/ap/checkssl/SlackBuild index 7d0c3bb4..aeab0086 100755 --- a/ap/checkssl/SlackBuild +++ b/ap/checkssl/SlackBuild @@ -1,7 +1,8 @@ #!/bin/bash # variables -VERSION=${VERSION:-"trunk"} +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 BUILD=${BUILD:-1} TAG=gwh @@ -23,7 +24,7 @@ rm -fr $PKG mkdir -p $PKG # mise en place -[ ! -e $REPOSITORY ] && git clone https://github.com/srvrco/checkssl.git $REPOSITORY +[ ! -e $REPOSITORY ] && git clone https://github.com/${GITHUB_REPO}.git $REPOSITORY cd $REPOSITORY git pull --all [ "x$VERSION" == "xtrunk" ] && VERSION="git_$(git log -1 --format=%h_%ad --date=format:%Y.%m.%d)" || git checkout $VERSION @@ -63,7 +64,7 @@ $PRGNAM: need of updating etc. $PRGNAM: $PRGNAM: $PRGNAM: -$PRGNAM: https://github.com/srvrco/checkssl/ +$PRGNAM: https://github.com/${GITHUB_REPO}/ $PRGNAM: EOF diff --git a/ap/delta/SlackBuild b/ap/delta/SlackBuild index 9e6e330d..ee67e7bf 100755 --- a/ap/delta/SlackBuild +++ b/ap/delta/SlackBuild @@ -1,7 +1,8 @@ #!/bin/bash # variables -VERSION=${VERSION:-"trunk"} +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 BUILD=${BUILD:-1} TAG=gwh @@ -24,7 +25,7 @@ mkdir -p $PKG # mise en place cd $TMP -[ ! -e $REPOSITORY ] && git clone https://github.com/dandavison/delta.git $REPOSITORY +[ ! -e $REPOSITORY ] && git clone https://github.com/${GITHUB_REPO}.git $REPOSITORY cd $REPOSITORY git pull --all @@ -70,7 +71,7 @@ $PRGNAM: $PRGNAM: $PRGNAM: $PRGNAM: -$PRGNAM: https://github.com/dandavison/delta +$PRGNAM: https://github.com/${GITHUB_REPO} EOF # empaquetage diff --git a/ap/diskus/SlackBuild b/ap/diskus/SlackBuild index 60db0e67..0dd577d8 100755 --- a/ap/diskus/SlackBuild +++ b/ap/diskus/SlackBuild @@ -1,7 +1,8 @@ #!/bin/bash # variables -VERSION=${VERSION:-"trunk"} +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 BUILD=${BUILD:-1} TAG=gwh @@ -24,7 +25,7 @@ mkdir -p $PKG # mise en place cd $TMP -[ ! -e $REPOSITORY ] && git clone https://github.com/sharkdp/diskus.git $REPOSITORY +[ ! -e $REPOSITORY ] && git clone https://github.com/${GITHUB_REPO}.git $REPOSITORY cd $REPOSITORY git pull --all @@ -70,7 +71,7 @@ $PRGNAM: $PRGNAM: $PRGNAM: $PRGNAM: -$PRGNAM: https://github.com/sharkdp/diskus +$PRGNAM: https://github.com/${GITHUB_REPO} EOF # empaquetage diff --git a/ap/dive/SlackBuild b/ap/dive/SlackBuild index 562f465f..86e0b31f 100755 --- a/ap/dive/SlackBuild +++ b/ap/dive/SlackBuild @@ -1,7 +1,8 @@ #!/bin/bash # variables -VERSION=${VERSION:-"trunk"} +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 BUILD=${BUILD:-1} TAG=gwh @@ -24,7 +25,7 @@ mkdir -p $PKG # mise en place cd $TMP -[ ! -e $REPOSITORY ] && git clone https://github.com/wagoodman/dive.git $REPOSITORY +[ ! -e $REPOSITORY ] && git clone https://github.com/${GITHUB_REPO}.git $REPOSITORY cd $REPOSITORY git pull --all @@ -70,7 +71,7 @@ $PRGNAM: $PRGNAM: $PRGNAM: $PRGNAM: -$PRGNAM: https://github.com/wagoodman/dive +$PRGNAM: https://github.com/${GITHUB_REPO} EOF # empaquetage diff --git a/ap/dust/SlackBuild b/ap/dust/SlackBuild index 4865a597..5ce03dfd 100755 --- a/ap/dust/SlackBuild +++ b/ap/dust/SlackBuild @@ -1,7 +1,8 @@ #!/bin/bash # variables -VERSION=${VERSION:-"trunk"} +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 BUILD=${BUILD:-1} TAG=gwh @@ -24,7 +25,7 @@ mkdir -p $PKG # mise en place cd $TMP -[ ! -e $REPOSITORY ] && git clone https://github.com/bootandy/dust.git $REPOSITORY +[ ! -e $REPOSITORY ] && git clone https://github.com/${GITHUB_REPO}.git $REPOSITORY cd $REPOSITORY git pull --all @@ -70,7 +71,7 @@ $PRGNAM: $PRGNAM: $PRGNAM: $PRGNAM: -$PRGNAM: https://github.com/bootandy/dust +$PRGNAM: https://github.com/${GITHUB_REPO} EOF # empaquetage diff --git a/ap/esptool/SlackBuild b/ap/esptool/SlackBuild index 5d281905..256b6084 100755 --- a/ap/esptool/SlackBuild +++ b/ap/esptool/SlackBuild @@ -2,7 +2,8 @@ CWD=$(pwd) PRGNAM=$(basename $CWD) -VERSION=${VERSION:-"trunk"} +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 BUILD=1 ARCH=noarch @@ -19,7 +20,7 @@ rm -fr $PKG $TMP/$PRGNAM mkdir -p $TMP # mise en place -[ ! -e $REPOSITORY ] && git clone https://github.com/espressif/esptool.git $REPOSITORY +[ ! -e $REPOSITORY ] && git clone https://github.com/${GITHUB_REPO}.git $REPOSITORY cd $REPOSITORY git pull --all @@ -46,7 +47,7 @@ $PRGNAM: $PRGNAM: $PRGNAM: $PRGNAM: -$PRGNAM: https://github.com/espressif/esptool +$PRGNAM: https://github.com/${GITHUB_REPO} EOF cd $PKG diff --git a/ap/exa/SlackBuild b/ap/exa/SlackBuild index ba5fcc00..2da1c02c 100755 --- a/ap/exa/SlackBuild +++ b/ap/exa/SlackBuild @@ -1,7 +1,8 @@ #!/bin/bash # variables -VERSION=${VERSION:-"trunk"} +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 BUILD=${BUILD:-1} TAG=gwh @@ -24,7 +25,7 @@ mkdir -p $PKG # mise en place cd $TMP -[ ! -e $REPOSITORY ] && git clone https://github.com/ogham/exa.git $REPOSITORY +[ ! -e $REPOSITORY ] && git clone https://github.com/${GITHUB_REPO}.git $REPOSITORY cd $REPOSITORY git pull --all @@ -70,7 +71,7 @@ $PRGNAM: recursing into directories with a tree view. exa is written in Rust, $PRGNAM: so it’s small, fast, and portable. $PRGNAM: $PRGNAM: -$PRGNAM: https://github.com/ogham/exa +$PRGNAM: https://github.com/${GITHUB_REPO} EOF # empaquetage diff --git a/ap/f3/SlackBuild b/ap/f3/SlackBuild index 5abc1382..8067722c 100755 --- a/ap/f3/SlackBuild +++ b/ap/f3/SlackBuild @@ -1,7 +1,8 @@ #!/bin/bash # variables -VERSION=${VERSION:-"trunk"} +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 BUILD=${BUILD:-1} TAG=gwh @@ -24,7 +25,7 @@ mkdir -p $PKG # mise en place cd $TMP -[ ! -e $REPOSITORY ] && git clone https://github.com/AltraMayor/f3.git $REPOSITORY +[ ! -e $REPOSITORY ] && git clone https://github.com/${GITHUB_REPO}.git $REPOSITORY cd $REPOSITORY git pull --all @@ -71,7 +72,7 @@ $PRGNAM: $PRGNAM: $PRGNAM: $PRGNAM: http://oss.digirati.com.br/f3/ -$PRGNAM: https://github.com/AltraMayor/f3/ +$PRGNAM: https://github.com/${GITHUB_REPO}/ EOF # empaquetage diff --git a/ap/getssl/SlackBuild b/ap/getssl/SlackBuild index c22b70b4..1d3e5ba9 100755 --- a/ap/getssl/SlackBuild +++ b/ap/getssl/SlackBuild @@ -1,7 +1,8 @@ #!/bin/bash # variables -VERSION=${VERSION:-"trunk"} +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 BUILD=${BUILD:-1} TAG=gwh @@ -23,7 +24,7 @@ rm -fr $PKG mkdir -p $PKG # mise en place -[ ! -e $REPOSITORY ] && git clone https://github.com/srvrco/getssl.git $REPOSITORY +[ ! -e $REPOSITORY ] && git clone https://github.com/${GITHUB_REPO}.git $REPOSITORY cd $REPOSITORY git pull --all [ "x$VERSION" == "xtrunk" ] && VERSION="git_$(git log -1 --format=%h_%ad --date=format:%Y.%m.%d)" || git checkout $VERSION @@ -61,7 +62,7 @@ $PRGNAM: this script in standard bash ( on a desktop computer, or even $PRGNAM: virtualbox) and add the checks, and certificates to a remote server $PRGNAM: (providing you have an ssh key on the remote server with access). $PRGNAM: -$PRGNAM: https://github.com/srvrco/getssl/ +$PRGNAM: https://github.com/${GITHUB_REPO}/ $PRGNAM: EOF diff --git a/ap/grex/SlackBuild b/ap/grex/SlackBuild index 323855d3..e0f13d04 100755 --- a/ap/grex/SlackBuild +++ b/ap/grex/SlackBuild @@ -1,7 +1,8 @@ #!/bin/bash # variables -VERSION=${VERSION:-"trunk"} +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 BUILD=${BUILD:-1} TAG=gwh @@ -24,7 +25,7 @@ mkdir -p $PKG # mise en place cd $TMP -[ ! -e $REPOSITORY ] && git clone https://github.com/pemistahl/grex.git $REPOSITORY +[ ! -e $REPOSITORY ] && git clone https://github.com/${GITHUB_REPO}.git $REPOSITORY cd $REPOSITORY git pull --all @@ -70,7 +71,7 @@ $PRGNAM: $PRGNAM: $PRGNAM: $PRGNAM: -$PRGNAM: https://github.com/pemistahl/grex +$PRGNAM: https://github.com/${GITHUB_REPO} EOF # empaquetage diff --git a/ap/ht/SlackBuild b/ap/ht/SlackBuild index ce0baf87..4cdd80bf 100755 --- a/ap/ht/SlackBuild +++ b/ap/ht/SlackBuild @@ -1,7 +1,8 @@ #!/bin/bash # variables -VERSION=${VERSION:-"trunk"} +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 BUILD=${BUILD:-1} TAG=gwh @@ -24,7 +25,7 @@ mkdir -p $PKG # mise en place cd $TMP -[ ! -e $REPOSITORY ] && git clone https://github.com/ducaale/ht.git $REPOSITORY +[ ! -e $REPOSITORY ] && git clone https://github.com/${GITHUB_REPO}.git $REPOSITORY cd $REPOSITORY git pull --all @@ -70,7 +71,7 @@ $PRGNAM: $PRGNAM: $PRGNAM: $PRGNAM: -$PRGNAM: https://github.com/ducaale/ht +$PRGNAM: https://github.com/${GITHUB_REPO} EOF # empaquetage diff --git a/ap/hyperfine/SlackBuild b/ap/hyperfine/SlackBuild index a7f94e97..b1f586dd 100755 --- a/ap/hyperfine/SlackBuild +++ b/ap/hyperfine/SlackBuild @@ -1,7 +1,8 @@ #!/bin/bash # variables -VERSION=${VERSION:-"trunk"} +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 BUILD=${BUILD:-1} TAG=gwh @@ -24,7 +25,7 @@ mkdir -p $PKG # mise en place cd $TMP -[ ! -e $REPOSITORY ] && git clone https://github.com/sharkdp/hyperfine.git $REPOSITORY +[ ! -e $REPOSITORY ] && git clone https://github.com/${GITHUB_REPO}.git $REPOSITORY cd $REPOSITORY git pull --all @@ -73,7 +74,7 @@ $PRGNAM: $PRGNAM: $PRGNAM: $PRGNAM: -$PRGNAM: https://github.com/sharkdp/hyperfine +$PRGNAM: https://github.com/${GITHUB_REPO} EOF # empaquetage diff --git a/ap/icr/SlackBuild b/ap/icr/SlackBuild index a3cd0753..cf2a998d 100755 --- a/ap/icr/SlackBuild +++ b/ap/icr/SlackBuild @@ -1,7 +1,8 @@ #!/bin/bash # variables -VERSION=${VERSION:-"trunk"} +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 BUILD=${BUILD:-1} TAG=gwh @@ -23,7 +24,7 @@ rm -fr $PKG mkdir -p $PKG $TMP # mise en place -[ ! -e $REPOSITORY ] && git clone https://github.com/crystal-community/icr.git $REPOSITORY +[ ! -e $REPOSITORY ] && git clone https://github.com/${GITHUB_REPO}.git $REPOSITORY cd $REPOSITORY git pull --all @@ -63,7 +64,7 @@ $PRGNAM: $PRGNAM: $PRGNAM: $PRGNAM: -$PRGNAM: https://github.com/crystal-community/icr +$PRGNAM: https://github.com/${GITHUB_REPO} $PRGNAM: EOF diff --git a/ap/ledger/SlackBuild b/ap/ledger/SlackBuild index 6eede6de..4d26ab35 100755 --- a/ap/ledger/SlackBuild +++ b/ap/ledger/SlackBuild @@ -6,15 +6,15 @@ CWD=$(pwd) PRGNAM=$(basename $CWD) -BRANCH=${BRANCH:="CURRENT"} -VERSION=${VERSION:-"trunk"} +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 ARCH=${ARCH:-$(uname -m)} -BUILD=${BUILD:-2} +BUILD=${BUILD:-3} TAG=${TAG:-gwh} REPOSITORY=/home/installs/SlackBuilds/repositories/$PRGNAM TMP=${TMP:-/tmp/$TAG} -PKG=$TMP/package-$PRGNAM +PKG=$TMP/pkg-$PRGNAM OUTPUT=${OUTPUT:-/tmp} PYTHON="" # " --python " @@ -35,7 +35,7 @@ mkdir -p $TMP $PKG/usr cd $TMP rm -rf $PRGNAM -[ ! -e $REPOSITORY ] && git clone https://github.com/ledger/ledger.git $REPOSITORY +[ ! -e $REPOSITORY ] && git clone https://github.com/${GITHUB_REPO}.git $REPOSITORY ( cd $REPOSITORY && git pull && git submodule update --init ) cp -R $REPOSITORY $PRGNAM @@ -47,22 +47,7 @@ find . \ \( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \ -exec chmod 644 {} \; -case $BRANCH in - "RELEASE") - git checkout -b stable v$VERSION - ;; - "CURRENT") - git checkout -b master origin/master - ;; - "BETA") - git checkout -b $VERSION release/$VERSION - ;; - "ALPHA") - git checkout -b next origin/next - ;; - *) -esac -[ $BRANCH != "RELEASE" ] && VERSION="git_$( cd $REPOSITORY && git log -1 --format=%h_%ad --date=format:%Y.%m.%d )" +[ "x$VERSION" == "xtrunk" ] && VERSION="git_$(git log -1 --format=%h_%ad --date=format:%Y.%m.%d)" || git checkout $VERSION ./acprep pull @@ -75,13 +60,13 @@ mv $PKG/usr/share/man $PKG/usr/ rm -fr $PKG/usr/share/doc find $PKG/usr/man/ -type f -name \*.\? -exec gzip -9 {} \; -mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION/scripts +mkdir -p $PKG/usr/doc/$PRGNAM/scripts cp -a \ *.md contrib/ doc/ python/ \ - $PKG/usr/doc/$PRGNAM-$VERSION + $PKG/usr/doc/$PRGNAM ( cd $PKG/usr/bin for i in report; do - ln -s ../doc/$PRGNAM-$VERSION/contrib/$i ledger-$i + ln -s ../doc/$PRGNAM/contrib/$i ledger-$i done ) @@ -108,6 +93,6 @@ ledger: ledger: EOF -cd $TMP/package-$PRGNAM +cd $PKG rm -f $PKG/{,usr/}lib$(uname -m | grep -o 64)/*.la /sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-txz} diff --git a/ap/lsd/SlackBuild b/ap/lsd/SlackBuild index b55f2d9d..8d0e351c 100755 --- a/ap/lsd/SlackBuild +++ b/ap/lsd/SlackBuild @@ -1,7 +1,8 @@ #!/bin/bash # variables -VERSION=${VERSION:-"trunk"} +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 BUILD=${BUILD:-1} TAG=gwh @@ -24,7 +25,7 @@ mkdir -p $PKG # mise en place cd $TMP -[ ! -e $REPOSITORY ] && git clone https://github.com/Peltoche/lsd.git $REPOSITORY +[ ! -e $REPOSITORY ] && git clone https://github.com/${GITHUB_REPO}.git $REPOSITORY cd $REPOSITORY git pull --all @@ -70,7 +71,7 @@ $PRGNAM: $PRGNAM: $PRGNAM: $PRGNAM: -$PRGNAM: https://github.com/Peltoche/lsd +$PRGNAM: https://github.com/${GITHUB_REPO} EOF # empaquetage diff --git a/ap/lsyncd/SlackBuild b/ap/lsyncd/SlackBuild index 8806b2d6..6d139e52 100755 --- a/ap/lsyncd/SlackBuild +++ b/ap/lsyncd/SlackBuild @@ -4,7 +4,8 @@ CWD=$(pwd) PRGNAM=$(basename $CWD) -VERSION=${VERSION:-"trunk"} +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 ARCH=${ARCH:-$(uname -m)} BUILD=1 @@ -26,7 +27,7 @@ mkdir -p $PKG # mise en place cd $TMP -[ ! -e $REPOSITORY ] && git clone https://github.com/axkibe/lsyncd.git $REPOSITORY +[ ! -e $REPOSITORY ] && git clone https://github.com/${GITHUB_REPO}.git $REPOSITORY cp -R $REPOSITORY $TMP/$PRGNAM-$VERSION cd $TMP/$PRGNAM-$VERSION diff --git a/ap/mdcat/SlackBuild b/ap/mdcat/SlackBuild index 310228b9..ef1da601 100755 --- a/ap/mdcat/SlackBuild +++ b/ap/mdcat/SlackBuild @@ -1,7 +1,8 @@ #!/bin/bash # variables -VERSION=${VERSION:-"trunk"} +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 BUILD=${BUILD:-1} TAG=gwh @@ -24,7 +25,7 @@ mkdir -p $PKG # mise en place cd $TMP -[ ! -e $REPOSITORY ] && git clone https://github.com/lunaryorn/mdcat $REPOSITORY +[ ! -e $REPOSITORY ] && git clone https://github.com/${GITHUB_REPO} $REPOSITORY cd $REPOSITORY git pull --all @@ -70,7 +71,7 @@ $PRGNAM: $PRGNAM: $PRGNAM: $PRGNAM: -$PRGNAM: https://github.com/lunaryorn/mdcat +$PRGNAM: https://github.com/${GITHUB_REPO} EOF # empaquetage diff --git a/ap/motion/SlackBuild b/ap/motion/SlackBuild index 74f487b6..20922303 100755 --- a/ap/motion/SlackBuild +++ b/ap/motion/SlackBuild @@ -25,7 +25,8 @@ # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. PRGNAM=motion -VERSION=${VERSION:-"trunk"} +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 BUILD=${BUILD:-1} TAG=${TAG:-gwh} @@ -60,7 +61,7 @@ mkdir -p $TMP $PKG $OUTPUT cd $TMP rm -rf $PRGNAM -[ ! -e $REPOSITORY ] && git clone https://github.com/Motion-Project/motion $REPOSITORY +[ ! -e $REPOSITORY ] && git clone https://github.com/${GITHUB_REPO} $REPOSITORY cd $REPOSITORY git pull --all diff --git a/ap/nu/SlackBuild b/ap/nu/SlackBuild index d9c396ab..06bca74f 100755 --- a/ap/nu/SlackBuild +++ b/ap/nu/SlackBuild @@ -1,7 +1,8 @@ #!/bin/bash # variables -VERSION=${VERSION:-"trunk"} +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 BUILD=${BUILD:-1} TAG=gwh @@ -24,7 +25,7 @@ mkdir -p $PKG # mise en place cd $TMP -[ ! -e $REPOSITORY ] && git clone https://github.com/nushell/nushell.git $REPOSITORY +[ ! -e $REPOSITORY ] && git clone https://github.com/${GITHUB_REPO}.git $REPOSITORY cd $REPOSITORY git pull --all diff --git a/ap/pip2tgz/SlackBuild b/ap/pip2tgz/SlackBuild deleted file mode 100755 index 6a790cc3..00000000 --- a/ap/pip2tgz/SlackBuild +++ /dev/null @@ -1,70 +0,0 @@ -#!/bin/bash - -# variables -VERSION=${VERSION:-"trunk"} -BUILD=${BUILD:-1} - -TAG=gwh -TMP=/tmp/$TAG -CWD=$(pwd) - -PRGNAM=$(basename $CWD) -PKG=$TMP/pkg-$PRGNAM -OUTPUT=${OUTPUT:-/tmp} - -ARCH=${ARCH:-$(uname -m)} - -REPOSITORY=${REPOSITORY:-/home/installs/SlackBuilds/repositories/$PRGNAM} -PREFIX=${PREFIX:-/usr} - -# nettoyage préalable -rm -fr $PKG - -mkdir -p $PKG - -# mise en place -[ ! -e $REPOSITORY ] && git clone https://github.com/h3xx/pip2tgz.git $REPOSITORY -cd $REPOSITORY -git pull --all -[ "x$VERSION" == "xtrunk" ] && VERSION="git_$(git log -1 --format=%h_%ad --date=format:%Y.%m.%d)" || git checkout $VERSION - -mkdir -p $PKG$PREFIX/bin -cp $REPOSITORY/pip2tgz $PKG$PREFIX/bin/ -chmod 755 $PKG$PREFIX/bin/* - -# move doc/ to the appropriate location -mkdir -p $PKG$PREFIX/doc/$PRGNAM -cp $REPOSITORY/LICENSE $REPOSITORY/README.md $PKG$PREFIX/doc/$PRGNAM - -# correction -cd $PKG -chown -R root:root * - -# embaumement -mkdir -p $PKG/install - -cat < $PKG/install/slack-desc -# HOW TO EDIT THIS FILE: -# The "handy ruler" below makes it easier to edit a package description. Line -# up the first '|' above the ':' following the base package name, and the '|' -# on the right side marks the last column you can put a character in. You must -# make exactly 11 lines for the formatting to be correct. It's also -# customary to leave one space after the ':'. - - |-----handy-ruler------------------------------------------------------| -$PRGNAM: $PRGNAM (make package of pyhton modules) -$PRGNAM: -$PRGNAM: pip2tgz is a utility to create Slackware packages from Python Pip module distributions. -$PRGNAM: -$PRGNAM: -$PRGNAM: -$PRGNAM: -$PRGNAM: -$PRGNAM: -$PRGNAM: https://github.com/h3xx/pip2tgz -$PRGNAM: -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 diff --git a/ap/procs/SlackBuild b/ap/procs/SlackBuild index 1ecce381..3f587f3a 100755 --- a/ap/procs/SlackBuild +++ b/ap/procs/SlackBuild @@ -1,7 +1,8 @@ #!/bin/bash # variables -VERSION=${VERSION:-"trunk"} +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 BUILD=${BUILD:-1} TAG=gwh @@ -24,7 +25,7 @@ mkdir -p $PKG # mise en place cd $TMP -[ ! -e $REPOSITORY ] && git clone https://github.com/dalance/procs.git $REPOSITORY +[ ! -e $REPOSITORY ] && git clone https://github.com/${GITHUB_REPO}.git $REPOSITORY cd $REPOSITORY git pull --all @@ -70,7 +71,7 @@ $PRGNAM: $PRGNAM: $PRGNAM: $PRGNAM: -$PRGNAM: https://github.com/dalance/procs +$PRGNAM: https://github.com/${GITHUB_REPO} EOF # empaquetage diff --git a/ap/ripgrep/SlackBuild b/ap/ripgrep/SlackBuild index 46a9c5c2..01204623 100755 --- a/ap/ripgrep/SlackBuild +++ b/ap/ripgrep/SlackBuild @@ -1,7 +1,8 @@ #!/bin/bash # variables -VERSION=${VERSION:-"trunk"} +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 BUILD=${BUILD:-1} TAG=gwh @@ -24,7 +25,7 @@ mkdir -p $PKG # mise en place cd $TMP -[ ! -e $REPOSITORY ] && git clone https://github.com/BurntSushi/ripgrep.git $REPOSITORY +[ ! -e $REPOSITORY ] && git clone https://github.com/${GITHUB_REPO}.git $REPOSITORY cd $REPOSITORY git pull --all @@ -70,7 +71,7 @@ $PRGNAM: $PRGNAM: $PRGNAM: $PRGNAM: -$PRGNAM: https://github.com/BurntSushi/ripgrep +$PRGNAM: https://github.com/${GITHUB_REPO} EOF # empaquetage diff --git a/ap/rustup/SlackBuild b/ap/rustup/SlackBuild index 2bff6fdb..e1af5c2a 100755 --- a/ap/rustup/SlackBuild +++ b/ap/rustup/SlackBuild @@ -1,7 +1,8 @@ #!/bin/bash # variables -VERSION=${VERSION:-"trunk"} +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 BUILD=${BUILD:-1} TAG=gwh @@ -24,7 +25,7 @@ mkdir -p $PKG # mise en place cd $TMP -[ ! -e $REPOSITORY ] && git clone https://github.com/rust-lang/rustup.git $REPOSITORY +[ ! -e $REPOSITORY ] && git clone https://github.com/${GITHUB_REPO}.git $REPOSITORY cd $REPOSITORY git pull --all diff --git a/ap/sd/SlackBuild b/ap/sd/SlackBuild index a6e463bc..889dc52e 100755 --- a/ap/sd/SlackBuild +++ b/ap/sd/SlackBuild @@ -1,7 +1,8 @@ #!/bin/bash # variables -VERSION=${VERSION:-"trunk"} +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 BUILD=${BUILD:-1} TAG=gwh @@ -24,7 +25,7 @@ mkdir -p $PKG # mise en place cd $TMP -[ ! -e $REPOSITORY ] && git clone https://github.com/chmln/sd.git $REPOSITORY +[ ! -e $REPOSITORY ] && git clone https://github.com/${GITHUB_REPO}.git $REPOSITORY cd $REPOSITORY git pull --all @@ -70,7 +71,7 @@ $PRGNAM: $PRGNAM: $PRGNAM: $PRGNAM: -$PRGNAM: https://github.com/chmln/sd +$PRGNAM: https://github.com/${GITHUB_REPO} EOF # empaquetage diff --git a/ap/starship/SlackBuild b/ap/starship/SlackBuild index b804692a..10105c34 100755 --- a/ap/starship/SlackBuild +++ b/ap/starship/SlackBuild @@ -1,7 +1,8 @@ #!/bin/bash # variables -VERSION=${VERSION:-"trunk"} +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 BUILD=${BUILD:-1} TAG=gwh @@ -24,7 +25,7 @@ mkdir -p $PKG # mise en place cd $TMP -[ ! -e $REPOSITORY ] && git clone https://github.com/starship/starship.git $REPOSITORY +[ ! -e $REPOSITORY ] && git clone https://github.com/${GITHUB_REPO}.git $REPOSITORY cd $REPOSITORY git pull --all diff --git a/ap/tldr/SlackBuild b/ap/tldr/SlackBuild index 34808a2c..f3a6970e 100755 --- a/ap/tldr/SlackBuild +++ b/ap/tldr/SlackBuild @@ -1,7 +1,8 @@ #!/bin/bash # variables -VERSION=${VERSION:-"trunk"} +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 BUILD=${BUILD:-1} TAG=gwh @@ -24,7 +25,7 @@ mkdir -p $PKG # mise en place cd $TMP -[ ! -e $REPOSITORY ] && git clone https://github.com/dbrgn/tealdeer.git $REPOSITORY +[ ! -e $REPOSITORY ] && git clone https://github.com/${GITHUB_REPO}.git $REPOSITORY cd $REPOSITORY git pull --all @@ -70,7 +71,7 @@ $PRGNAM: $PRGNAM: $PRGNAM: $PRGNAM: -$PRGNAM: https://github.com/dbrgn/tealdeer +$PRGNAM: https://github.com/${GITHUB_REPO} EOF # empaquetage diff --git a/ap/viu/SlackBuild b/ap/viu/SlackBuild index ed6a5e71..ee2cc9dd 100755 --- a/ap/viu/SlackBuild +++ b/ap/viu/SlackBuild @@ -1,7 +1,8 @@ #!/bin/bash # variables -VERSION=${VERSION:-"trunk"} +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 BUILD=${BUILD:-1} TAG=gwh @@ -24,7 +25,7 @@ mkdir -p $PKG # mise en place cd $TMP -[ ! -e $REPOSITORY ] && git clone https://github.com/atanunq/viu $REPOSITORY +[ ! -e $REPOSITORY ] && git clone https://github.com/${GITHUB_REPO} $REPOSITORY cd $REPOSITORY git pull --all @@ -70,7 +71,7 @@ $PRGNAM: $PRGNAM: $PRGNAM: $PRGNAM: -$PRGNAM: https://github.com/atanunq/viu +$PRGNAM: https://github.com/${GITHUB_REPO} EOF # empaquetage diff --git a/ap/ycmd/SlackBuild b/ap/ycmd/SlackBuild index 80f2851f..50189c29 100755 --- a/ap/ycmd/SlackBuild +++ b/ap/ycmd/SlackBuild @@ -1,7 +1,8 @@ #!/bin/bash # variables -VERSION=${VERSION:-"trunk"} +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 BUILD=${BUILD:-1} TAG=gwh @@ -24,7 +25,7 @@ mkdir -p $PKG # mise en place cd $TMP -[ ! -e $REPOSITORY ] && git clone https://github.com/Valloric/ycmd.git $REPOSITORY +[ ! -e $REPOSITORY ] && git clone https://github.com/${GITHUB_REPO}.git $REPOSITORY cd $REPOSITORY git pull --all diff --git a/ap/ytop/SlackBuild b/ap/ytop/SlackBuild index 607c1ba9..e69e15f8 100755 --- a/ap/ytop/SlackBuild +++ b/ap/ytop/SlackBuild @@ -1,7 +1,8 @@ #!/bin/bash # variables -VERSION=${VERSION:-"trunk"} +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 BUILD=${BUILD:-1} TAG=gwh @@ -24,7 +25,7 @@ mkdir -p $PKG # mise en place cd $TMP -[ ! -e $REPOSITORY ] && git clone https://github.com/cjbassi/ytop.git $REPOSITORY +[ ! -e $REPOSITORY ] && git clone https://github.com/${GITHUB_REPO}.git $REPOSITORY cd $REPOSITORY git pull --all @@ -70,7 +71,7 @@ $PRGNAM: $PRGNAM: $PRGNAM: $PRGNAM: -$PRGNAM: https://github.com/cjbassi/ytop +$PRGNAM: https://github.com/${GITHUB_REPO} EOF # empaquetage diff --git a/d/ameba/SlackBuild b/d/ameba/SlackBuild index 31d26c6c..09fe557a 100755 --- a/d/ameba/SlackBuild +++ b/d/ameba/SlackBuild @@ -4,7 +4,8 @@ CWD=$(pwd) PRGNAM=$(basename $CWD) -VERSION=${VERSION:-"trunk"} +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 ARCH=${ARCH:-$(uname -m)} BUILD=1 @@ -26,7 +27,7 @@ mkdir -p $PKG # mise en place cd $TMP -[ ! -e $REPOSITORY ] && git clone https://github.com/crystal-ameba/ameba.git $REPOSITORY +[ ! -e $REPOSITORY ] && git clone https://github.com/${GITHUB_REPO}.git $REPOSITORY cp -R $REPOSITORY $TMP/$PRGNAM cd $TMP/$PRGNAM @@ -64,7 +65,7 @@ $PRGNAM: constructions. $PRGNAM: $PRGNAM: $PRGNAM: -$PRGNAM: https://github.com/crystal-ameba/ameba +$PRGNAM: https://github.com/${GITHUB_REPO} $PRGNAM: EOF diff --git a/d/chruby/SlackBuild b/d/chruby/SlackBuild index 341249ec..e14daf68 100755 --- a/d/chruby/SlackBuild +++ b/d/chruby/SlackBuild @@ -11,7 +11,8 @@ PKG=$TMP/pkg-$PRGNAM REPOSITORY=/home/installs/SlackBuilds/repositories/$PRGNAM -VERSION=${VERSION:-"trunk"} +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 ARCH='noarch' BUILD=1 @@ -23,7 +24,7 @@ SLCKFLAGS="-fPIC -O2" mkdir -p $PKG # mise en place -[ ! -e $REPOSITORY ] && git clone https://github.com/postmodern/chruby $REPOSITORY +[ ! -e $REPOSITORY ] && git clone https://github.com/${GITHUB_REPO} $REPOSITORY cd $REPOSITORY git pull --all @@ -67,7 +68,7 @@ $PRGNAM: $PRGNAM: $PRGNAM: $PRGNAM: -$PRGNAM: https://github.com/postmodern/chruby +$PRGNAM: https://github.com/${GITHUB_REPO} $PRGNAM: EOF diff --git a/d/rbspy/SlackBuild b/d/rbspy/SlackBuild index 9a1ae14d..ba5e385f 100755 --- a/d/rbspy/SlackBuild +++ b/d/rbspy/SlackBuild @@ -1,9 +1,10 @@ #!/bin/bash # variables -VERSION=${VERSION:-"trunk"} -BUILD=${BUILD:-1} +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 +BUILD=${BUILD:-1} TAG=gwh TMP=/tmp/$TAG CWD=$(pwd) @@ -24,7 +25,7 @@ mkdir -p $PKG # mise en place cd $TMP -[ ! -e $REPOSITORY ] && git clone https://github.com/rbspy/rbspy.git $REPOSITORY +[ ! -e $REPOSITORY ] && git clone https://github.com/${GITHUB_REPO}.git $REPOSITORY cd $REPOSITORY git pull --all diff --git a/d/rpn/SlackBuild b/d/rpn/SlackBuild index d8c1e9ab..fa158a0f 100755 --- a/d/rpn/SlackBuild +++ b/d/rpn/SlackBuild @@ -4,7 +4,8 @@ CWD=$(pwd) PRGNAM=$(basename $CWD) -VERSION=${VERSION:-"trunk"} +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 ARCH=${ARCH:-$(uname -m)} BUILD=1 @@ -26,7 +27,7 @@ mkdir -p $PKG # mise en place cd $TMP -[ ! -e $REPOSITORY ] && git clone https://github.com/louisrubet/rpn.git $REPOSITORY +[ ! -e $REPOSITORY ] && git clone https://github.com/${GITHUB_REPO}.git $REPOSITORY cp -R $REPOSITORY $TMP/$PRGNAM-$VERSION cd $TMP/$PRGNAM-$VERSION @@ -72,7 +73,7 @@ $PRGNAM: $PRGNAM: $PRGNAM: $PRGNAM: -$PRGNAM: https://github.com/louisrubet/rpn +$PRGNAM: https://github.com/${GITHUB_REPO} $PRGNAM: EOF diff --git a/d/ruby-install/SlackBuild b/d/ruby-install/SlackBuild index 7cf5b6c4..e859e6ce 100755 --- a/d/ruby-install/SlackBuild +++ b/d/ruby-install/SlackBuild @@ -1,6 +1,8 @@ #!/bin/bash # 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 TAG=gwh TMP=/tmp/$TAG @@ -10,7 +12,6 @@ PRGNAM=$(basename $CWD) PKG=$TMP/pkg-$PRGNAM REPOSITORY=/home/installs/SlackBuilds/repositories/$PRGNAM -VERSION=${VERSION:-"trunk"} ARCH='noarch' BUILD=1 @@ -20,7 +21,7 @@ PREFIX=/usr mkdir -p $PKG # mise en place -[ ! -e $REPOSITORY ] && git clone https://github.com/postmodern/ruby-install $REPOSITORY +[ ! -e $REPOSITORY ] && git clone https://github.com/${GITHUB_REPO} $REPOSITORY cd $REPOSITORY git pull --all @@ -64,7 +65,7 @@ $PRGNAM: $PRGNAM: $PRGNAM: $PRGNAM: -$PRGNAM: https://github.com/postmodern/ruby-install +$PRGNAM: https://github.com/${GITHUB_REPO} $PRGNAM: EOF diff --git a/d/scry/SlackBuild b/d/scry/SlackBuild index eedfdf9b..7010f386 100755 --- a/d/scry/SlackBuild +++ b/d/scry/SlackBuild @@ -4,7 +4,8 @@ CWD=$(pwd) PRGNAM=$(basename $CWD) -VERSION=${VERSION:-"trunk"} +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 ARCH=${ARCH:-$(uname -m)} BUILD=1 @@ -26,7 +27,7 @@ mkdir -p $PKG # mise en place cd $TMP -[ ! -e $REPOSITORY ] && git clone https://github.com/crystal-lang-tools/scry.git $REPOSITORY +[ ! -e $REPOSITORY ] && git clone https://github.com/${GITHUB_REPO}.git $REPOSITORY cp -R $REPOSITORY $TMP/$PRGNAM-$VERSION cd $TMP/$PRGNAM-$VERSION @@ -68,7 +69,7 @@ $PRGNAM: is compatible with any client that implements this protocol. $PRGNAM: $PRGNAM: The server is implemented in Crystal. $PRGNAM: -$PRGNAM: https://github.com/crystal-lang-tools/scry +$PRGNAM: https://github.com/${GITHUB_REPO} $PRGNAM: EOF diff --git a/l/apcu/SlackBuild b/l/apcu/SlackBuild index c60642d6..66169b46 100755 --- a/l/apcu/SlackBuild +++ b/l/apcu/SlackBuild @@ -9,7 +9,8 @@ CWD=$(pwd) PRGNAM=$(basename $CWD) PKG=$TMP/pkg-$PRGNAM -VERSION=${VERSION:-"trunk"} +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 EXT=tar.gz @@ -30,7 +31,7 @@ rm -fr $PKG $TMP/$PRGNAM mkdir -p $PKG # mise en place -[ ! -e $REPOSITORY ] && git clone https://github.com/krakjoe/apcu.git $REPOSITORY +[ ! -e $REPOSITORY ] && git clone https://github.com/${GITHUB_REPO}.git $REPOSITORY cd $REPOSITORY git pull --all @@ -80,7 +81,7 @@ $PRGNAM: $PRGNAM: $PRGNAM: $PRGNAM: -$PRGNAM: https://github.com/krakjoe/apcu +$PRGNAM: https://github.com/${GITHUB_REPO} $PRGNAM: EOF diff --git a/l/basu/SlackBuild b/l/basu/SlackBuild index e63c0ec7..0bcbed94 100755 --- a/l/basu/SlackBuild +++ b/l/basu/SlackBuild @@ -1,7 +1,8 @@ #!/bin/bash # variables -VERSION=${VERSION:-"trunk"} +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 BUILD=1 TAG=gwh @@ -23,7 +24,7 @@ rm -fr $PKG $TMP/$PRGNAM mkdir -p $PKG # mise en place -[ ! -e $REPOSITORY ] && git clone https://github.com/emersion/basu $REPOSITORY +[ ! -e $REPOSITORY ] && git clone https://github.com/${GITHUB_REPO} $REPOSITORY cd $REPOSITORY git pull --all @@ -69,7 +70,7 @@ $PRGNAM: $PRGNAM: $PRGNAM: $PRGNAM: -$PRGNAM: https://github.com/emersion/basu +$PRGNAM: https://github.com/${GITHUB_REPO} EOF # empaquetage diff --git a/l/fmt/SlackBuild b/l/fmt/SlackBuild index c52312f4..47312e73 100755 --- a/l/fmt/SlackBuild +++ b/l/fmt/SlackBuild @@ -4,7 +4,8 @@ CWD=$(pwd) PRGNAM=$(basename $CWD) -VERSION=${VERSION:-"trunk"} +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 ARCH=${ARCH:-$(uname -m)} BUILD=1 @@ -26,7 +27,7 @@ mkdir -p $PKG # mise en place cd $TMP -[ ! -e $REPOSITORY ] && git clone https://github.com/fmtlib/fmt.git $REPOSITORY +[ ! -e $REPOSITORY ] && git clone https://github.com/${GITHUB_REPO}.git $REPOSITORY cp -R $REPOSITORY $TMP/$PRGNAM cd $TMP/$PRGNAM @@ -71,7 +72,7 @@ $PRGNAM: $PRGNAM: $PRGNAM: $PRGNAM: -$PRGNAM: https://github.com/fmtlib/fmt +$PRGNAM: https://github.com/${GITHUB_REPO} EOF # empaquetage diff --git a/l/hinnant-date/SlackBuild b/l/hinnant-date/SlackBuild index 451e95c3..0d23d317 100755 --- a/l/hinnant-date/SlackBuild +++ b/l/hinnant-date/SlackBuild @@ -6,7 +6,8 @@ set -e CWD=$(pwd) PRGNAM=$(basename $CWD) -VERSION=${VERSION:-"trunk"} +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 ARCH=${ARCH:-$(uname -m)} BUILD=1 @@ -28,7 +29,7 @@ mkdir -p $PKG # mise en place cd $TMP -[ ! -e $REPOSITORY ] && git clone https://github.com/HowardHinnant/date.git $REPOSITORY +[ ! -e $REPOSITORY ] && git clone https://github.com/${GITHUB_REPO}.git $REPOSITORY cd $REPOSITORY git pull --all diff --git a/l/libucl/SlackBuild b/l/libucl/SlackBuild index 0280b137..4116842c 100755 --- a/l/libucl/SlackBuild +++ b/l/libucl/SlackBuild @@ -6,7 +6,8 @@ set -e CWD=$(pwd) PRGNAM=$(basename $CWD) -VERSION=${VERSION:-"git"} +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 ARCH=${ARCH:-$(uname -m)} BUILD=1 @@ -28,14 +29,14 @@ mkdir -p $PKG # mise en place cd $TMP -[ ! -e $REPOSITORY ] && git clone https://github.com/vstakhov/libucl.git $REPOSITORY +[ ! -e $REPOSITORY ] && git clone https://github.com/${GITHUB_REPO}.git $REPOSITORY cd $REPOSITORY git pull --all cp -R $REPOSITORY $TMP/$PRGNAM cd $TMP/$PRGNAM -[ "x$VERSION" == "xgit" ] && 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 # [ -e CMakeLists.txt ] && cmake \ @@ -82,7 +83,7 @@ $PRGNAM: $PRGNAM: $PRGNAM: $PRGNAM: -$PRGNAM: https://github.com/vstakhov/libucl +$PRGNAM: https://github.com/${GITHUB_REPO} EOF # empaquetage diff --git a/l/raylib/SlackBuild b/l/raylib/SlackBuild index cdec0592..4296ea07 100755 --- a/l/raylib/SlackBuild +++ b/l/raylib/SlackBuild @@ -1,7 +1,8 @@ #!/bin/bash # variables -VERSION=${VERSION:-"trunk"} +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 BUILD=1 TAG=gwh @@ -26,7 +27,7 @@ rm -fr $PKG $TMP/$PRGNAM-$VERSION mkdir -p $PKG # mise en place -[ ! -e $REPOSITORY ] && git clone https://github.com/raysan5/raylib.git $REPOSITORY +[ ! -e $REPOSITORY ] && git clone https://github.com/${GITHUB_REPO}.git $REPOSITORY cd $REPOSITORY git pull --all diff --git a/l/spdlog/SlackBuild b/l/spdlog/SlackBuild index 84275223..2f241533 100755 --- a/l/spdlog/SlackBuild +++ b/l/spdlog/SlackBuild @@ -4,7 +4,8 @@ CWD=$(pwd) PRGNAM=$(basename $CWD) -VERSION=${VERSION:-"trunk"} +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 ARCH=${ARCH:-$(uname -m)} BUILD=1 @@ -26,7 +27,7 @@ mkdir -p $PKG # mise en place cd $TMP -[ ! -e $REPOSITORY ] && git clone https://github.com/gabime/spdlog.git $REPOSITORY +[ ! -e $REPOSITORY ] && git clone https://github.com/${GITHUB_REPO}.git $REPOSITORY cp -R $REPOSITORY $TMP/$PRGNAM cd $TMP/$PRGNAM @@ -72,7 +73,7 @@ $PRGNAM: $PRGNAM: $PRGNAM: $PRGNAM: -$PRGNAM: https://github.com/gabime/spdlog +$PRGNAM: https://github.com/${GITHUB_REPO} EOF # empaquetage diff --git a/lua/awesome/SlackBuild b/lua/awesome/SlackBuild index e5a78a75..6f80b068 100755 --- a/lua/awesome/SlackBuild +++ b/lua/awesome/SlackBuild @@ -4,8 +4,9 @@ CWD=$(pwd) PRGNAM=awesome -BRANCH=master -VERSION=${VERSION:-${BRANCH}} +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 + ARCH=${ARCH:-$(uname -m)} BUILD=1 @@ -29,7 +30,7 @@ SRC_PATH=$REPOSITORIES/$PRGNAM # mise en place cd $TMP -[ ! -e $REPOSITORIES/$PRGNAM ] && git clone https://github.com/awesomeWM/$PRGNAM.git $REPOSITORIES/$PRGNAM +[ ! -e $REPOSITORIES/$PRGNAM ] && git clone https://github.com/${GITHUB_REPO}.git $REPOSITORIES/$PRGNAM ( cd $REPOSITORIES/$PRGNAM; git pull ) rm -fr $TMP/$PRGNAM diff --git a/lua/lgi/SlackBuild b/lua/lgi/SlackBuild index 11b91e3f..662ed117 100755 --- a/lua/lgi/SlackBuild +++ b/lua/lgi/SlackBuild @@ -2,13 +2,14 @@ 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 + # default settings PRGNAM=$(basename $CWD) ARCH=$(uname -m) -VERSION=${VERSION:-"trunk"} BUILD=1 - TAG=gwh TMP=/tmp/$TAG PKG=$TMP/pkg-$PRGNAM @@ -25,7 +26,7 @@ cd $TMP if [ -e $CWD/$PRGNAM-$VERSION.tar.xz ] ; then tar xvf $CWD/$PRGNAM-$VERSION.tar.xz else - [ ! -e $REPOSITORY ] && git clone https://github.com/pavouk/lgi.git $REPOSITORY + [ ! -e $REPOSITORY ] && git clone https://github.com/${GITHUB_REPO}.git $REPOSITORY cd $REPOSITORY git pull --all VERSION="git_$( cd $REPOSITORY && git log -1 --format=%h_%ad --date=format:%Y.%m.%d )" @@ -76,7 +77,7 @@ $PRGNAM: $PRGNAM: $PRGNAM: $PRGNAM: -$PRGNAM: https://github.com/pavouk/lgi +$PRGNAM: https://github.com/${GITHUB_REPO} $PRGNAM: EOF diff --git a/n/calibre-web/SlackBuild b/n/calibre-web/SlackBuild index c50a1211..5184489d 100755 --- a/n/calibre-web/SlackBuild +++ b/n/calibre-web/SlackBuild @@ -1,9 +1,11 @@ #!/bin/bash # 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 + RUNNING_USER=${RUNNING_USER:-gwh} RUNNING_GROUP=${RUNNING_GROUP:-users} -VERSION=${VERSION:-"trunk"} BUILD=${BUILD:-1} TAG=gwh @@ -25,7 +27,7 @@ rm -fr $PKG mkdir -p $PKG # mise en place -[ ! -e $REPOSITORY ] && git clone https://github.com/janeczku/calibre-web.git $REPOSITORY +[ ! -e $REPOSITORY ] && git clone https://github.com/${GITHUB_REPO}.git $REPOSITORY cd $REPOSITORY git pull --all @@ -74,7 +76,7 @@ $PRGNAM: default user: admin $PRGNAM: default password: $NEW_DEFAULT_PASSWORD $PRGNAM: $PRGNAM: -$PRGNAM: https://github.com/janeczku/calibre-web +$PRGNAM: https://github.com/${GITHUB_REPO} $PRGNAM: EOF diff --git a/n/pluxml/SlackBuild b/n/pluxml/SlackBuild index 037b2ab0..0c4bc698 100755 --- a/n/pluxml/SlackBuild +++ b/n/pluxml/SlackBuild @@ -2,8 +2,10 @@ 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 + PRGNAM=$(basename $CWD) -VERSION=${VERSION:-"trunk"} ARCH="noarch" # hardcode ARCH BUILD=${BUILD:-1} TAG=${TAG:-gwh} @@ -25,7 +27,7 @@ rm -rf $PKG mkdir -p $TMP $OUTPUT $PKG/$VHOSTROOT REPOSITORY=/home/installs/SlackBuilds/repositories/$PRGNAM -[ ! -e $REPOSITORY ] && git clone https://github.com/pluxml/PluXml $REPOSITORY +[ ! -e $REPOSITORY ] && git clone https://github.com/${GITHUB_REPO} $REPOSITORY ( cd $REPOSITORY git pull ) diff --git a/wayland/imv/SlackBuild b/wayland/imv/SlackBuild index 6099bbf3..f1180bdc 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)} # or VERSION=trunk +VERSION=${VERSION:-$(curl -s https://api.github.com/repos/${GITHUB_REPO}/releases/latest | jq -r .tag_name | sed 's|^null$|trunk|')} # or VERSION=trunk BUILD=1 diff --git a/wayland/kanshi/SlackBuild b/wayland/kanshi/SlackBuild index 415d43d4..75bea910 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)} # or VERSION=trunk +VERSION=${VERSION:-$(curl -s https://api.github.com/repos/${GITHUB_REPO}/releases/latest | jq -r .tag_name | sed 's|^null$|trunk|')} # or VERSION=trunk BUILD=1 diff --git a/wayland/mako/SlackBuild b/wayland/mako/SlackBuild index 4c83727c..4f616e6e 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)} # or VERSION=trunk +VERSION=${VERSION:-$(curl -s https://api.github.com/repos/${GITHUB_REPO}/releases/latest | jq -r .tag_name | sed 's|^null$|trunk|')} # or VERSION=trunk BUILD=1 diff --git a/wayland/qtile/SlackBuild b/wayland/qtile/SlackBuild index 87dd2ba7..0a6bb3e7 100755 --- a/wayland/qtile/SlackBuild +++ b/wayland/qtile/SlackBuild @@ -1,7 +1,9 @@ #!/bin/bash # variables -VERSION=${VERSION:-"trunk"} +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 + BUILD=1 TAG=gwh @@ -23,7 +25,7 @@ rm -fr $PKG $TMP/$PRGNAM mkdir -p $PKG # mise en place -[ ! -e $REPOSITORY ] && git clone https://github.com/qtile/qtile $REPOSITORY +[ ! -e $REPOSITORY ] && git clone https://github.com/${GITHUB_REPO} $REPOSITORY cd $REPOSITORY git pull --all diff --git a/wayland/river/SlackBuild b/wayland/river/SlackBuild index 01bf1bb5..59a15ce3 100755 --- a/wayland/river/SlackBuild +++ b/wayland/river/SlackBuild @@ -1,7 +1,9 @@ #!/bin/bash # variables -VERSION=${VERSION:-"trunk"} +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 + BUILD=1 TAG=gwh @@ -23,7 +25,7 @@ rm -fr $PKG $TMP/$PRGNAM mkdir -p $PKG # mise en place -[ ! -e $REPOSITORY ] && git clone https://github.com/ifreund/river --recursive $REPOSITORY +[ ! -e $REPOSITORY ] && git clone https://github.com/${GITHUB_REPO} --recursive $REPOSITORY cd $REPOSITORY git pull --all git submodule update @@ -110,7 +112,7 @@ $PRGNAM: $PRGNAM: $PRGNAM: $PRGNAM: -$PRGNAM: https://github.com/ifreund/river +$PRGNAM: https://github.com/${GITHUB_REPO} EOF # empaquetage diff --git a/wayland/sway/SlackBuild b/wayland/sway/SlackBuild index 260b1253..f9cbeb91 100755 --- a/wayland/sway/SlackBuild +++ b/wayland/sway/SlackBuild @@ -2,7 +2,7 @@ # variables GITHUB_REPO=swaywm/sway -VERSION=${VERSION:-$(curl -s https://api.github.com/repos/${GITHUB_REPO}/releases/latest | jq -r .tag_name)} # or VERSION=trunk +VERSION=${VERSION:-$(curl -s https://api.github.com/repos/${GITHUB_REPO}/releases/latest | jq -r .tag_name | sed 's|^null$|trunk|')} # or VERSION=trunk BUILD=1 TAG=gwh @@ -28,17 +28,9 @@ mkdir -p $PKG cd $REPOSITORY git pull --all -# WLROOTS_REPOSITORY=/home/installs/SlackBuilds/repositories/wlroots -# [ ! -e $WLROOTS_REPOSITORY ] && git clone https://github.com/swaywm/wlroots $WLROOTS_REPOSITORY -# cd $WLROOTS_REPOSITORY -# git pull --all - cp -R $REPOSITORY $TMP/ cd $TMP/$PRGNAM/ -# mkdir subprojects -# cp -R $WLROOTS_REPOSITORY subprojects/ - [ "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/swaybg/SlackBuild b/wayland/swaybg/SlackBuild index d16c2de8..527ff0cc 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)} # or VERSION=trunk +VERSION=${VERSION:-$(curl -s https://api.github.com/repos/${GITHUB_REPO}/releases/latest | jq -r .tag_name | sed 's|^null$|trunk|')} # or VERSION=trunk BUILD=1 diff --git a/wayland/swayidle/SlackBuild b/wayland/swayidle/SlackBuild index b4edd4bc..935a1ca7 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)} # or VERSION=trunk +VERSION=${VERSION:-$(curl -s https://api.github.com/repos/${GITHUB_REPO}/releases/latest | jq -r .tag_name | sed 's|^null$|trunk|')} # or VERSION=trunk BUILD=1 diff --git a/wayland/swaylock/SlackBuild b/wayland/swaylock/SlackBuild index aa364e20..52f598a4 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)} # or VERSION=trunk +VERSION=${VERSION:-$(curl -s https://api.github.com/repos/${GITHUB_REPO}/releases/latest | jq -r .tag_name | sed 's|^null$|trunk|')} # or VERSION=trunk BUILD=1 diff --git a/wayland/waybar/SlackBuild b/wayland/waybar/SlackBuild index 86f03722..415a89a8 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)} # or VERSION=trunk +VERSION=${VERSION:-$(curl -s https://api.github.com/repos/${GITHUB_REPO}/releases/latest | jq -r .tag_name | sed 's|^null$|trunk|')} # or VERSION=trunk BUILD=1 diff --git a/wayland/wlr-randr/SlackBuild b/wayland/wlr-randr/SlackBuild index e28c6084..12bb0395 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)} # or VERSION=trunk +VERSION=${VERSION:-$(curl -s https://api.github.com/repos/${GITHUB_REPO}/releases/latest | jq -r .tag_name | sed 's|^null$|trunk|')} # or VERSION=trunk BUILD=1 diff --git a/wayland/wlroots/SlackBuild b/wayland/wlroots/SlackBuild index f28a6916..82117a88 100755 --- a/wayland/wlroots/SlackBuild +++ b/wayland/wlroots/SlackBuild @@ -2,7 +2,7 @@ # variables GITHUB_REPO=swaywm/wlroots -VERSION=${VERSION:-$(curl -s https://api.github.com/repos/${GITHUB_REPO}/releases/latest | jq -r .tag_name)} # or VERSION=trunk +VERSION=${VERSION:-$(curl -s https://api.github.com/repos/${GITHUB_REPO}/releases/latest | jq -r .tag_name | sed 's|^null$|trunk|')} # or VERSION=trunk BUILD=1 diff --git a/xap/alacritty/SlackBuild b/xap/alacritty/SlackBuild index 2f584909..8b71d5e0 100755 --- a/xap/alacritty/SlackBuild +++ b/xap/alacritty/SlackBuild @@ -1,7 +1,8 @@ #!/bin/bash # variables -VERSION=${VERSION:-"trunk"} +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 BUILD=${BUILD:-1} TAG=gwh @@ -24,7 +25,7 @@ mkdir -p $PKG # mise en place cd $TMP -[ ! -e $REPOSITORY ] && git clone https://github.com/jwilm/alacritty.git $REPOSITORY +[ ! -e $REPOSITORY ] && git clone https://github.com/${GITHUB_REPO}.git $REPOSITORY cd $REPOSITORY git pull --all @@ -89,7 +90,7 @@ $PRGNAM: to be blazingly fast. By making sane choices for defaults, Alacritty $PRGNAM: requires no additional setup. However, it does allow configuration of $PRGNAM: many aspects of the terminal. $PRGNAM: -$PRGNAM: https://github.com/jwilm/alacritty +$PRGNAM: https://github.com/${GITHUB_REPO} $PRGNAM: EOF diff --git a/xap/alttab/SlackBuild b/xap/alttab/SlackBuild index f9588dae..00557a72 100755 --- a/xap/alttab/SlackBuild +++ b/xap/alttab/SlackBuild @@ -2,7 +2,8 @@ set -x PRGNAM=$(basename $(pwd)) -VERSION=${VERSION:-"trunk"} +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 BUILD=1 @@ -25,7 +26,7 @@ mkdir -p $TMP rm -fr $PRGNAM $PKG # Fetching sources -[ ! -e $REPOSITORY ] && git clone https://github.com/sagb/alttab.git $REPOSITORY +[ ! -e $REPOSITORY ] && git clone https://github.com/${GITHUB_REPO}.git $REPOSITORY cd $REPOSITORY git pull --all @@ -83,7 +84,7 @@ $PRGNAM: it's lightweight and depends only on basic X11 libs, conforming to the $PRGNAM: lightweight WM.alttab is X11 window switcher designed for minimalistic window $PRGNAM: managers or standalone X11 session. $PRGNAM: -$PRGNAM: https://github.com/sagb/alttab +$PRGNAM: https://github.com/${GITHUB_REPO} $PRGNAM: EOF diff --git a/xap/brightnessctl/SlackBuild b/xap/brightnessctl/SlackBuild index 37acd49a..a16d0983 100755 --- a/xap/brightnessctl/SlackBuild +++ b/xap/brightnessctl/SlackBuild @@ -4,8 +4,8 @@ CWD=$(pwd) PRGNAM=$(basename $(pwd)) -BRANCH= -VERSION=${VERSION:-"trunk"} +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 ARCH=${ARCH:-$(uname -m)} BUILD=1 @@ -18,7 +18,7 @@ REPOSITORIES=/home/installs/SlackBuilds/repositories PREFIX=/usr -[ ! -e $REPOSITORIES/$PRGNAM ] && git clone https://github.com/Hummer12007/brightnessctl.git $REPOSITORIES/$PRGNAM +[ ! -e $REPOSITORIES/$PRGNAM ] && git clone https://github.com/${GITHUB_REPO}.git $REPOSITORIES/$PRGNAM cd $REPOSITORIES/$PRGNAM git pull --all @@ -73,7 +73,7 @@ $PRGNAM: $PRGNAM: It can also preserve current brightness before applying the operation $PRGNAM: (allowing for usecases like disabling backlight on lid close). $PRGNAM: -$PRGNAM: https://github.com/Hummer12007/brightnessctl +$PRGNAM: https://github.com/${GITHUB_REPO} $PRGNAM: EOF diff --git a/xap/i3status-rust/SlackBuild b/xap/i3status-rust/SlackBuild index 018a211b..43bda168 100755 --- a/xap/i3status-rust/SlackBuild +++ b/xap/i3status-rust/SlackBuild @@ -1,7 +1,8 @@ #!/bin/bash # variables -VERSION=${VERSION:-"trunk"} +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 BUILD=${BUILD:-1} TAG=gwh @@ -24,7 +25,7 @@ mkdir -p $PKG # mise en place cd $TMP -[ ! -e $REPOSITORY ] && git clone https://github.com/greshake/i3status-rust.git $REPOSITORY +[ ! -e $REPOSITORY ] && git clone https://github.com/${GITHUB_REPO}.git $REPOSITORY cd $REPOSITORY git pull --all @@ -76,7 +77,7 @@ $PRGNAM: also compatible with sway. $PRGNAM: $PRGNAM: $PRGNAM: -$PRGNAM: https://github.com/greshake/i3status-rust +$PRGNAM: https://github.com/${GITHUB_REPO} $PRGNAM: EOF diff --git a/xap/image-roll/SlackBuild b/xap/image-roll/SlackBuild index aaa1e8e1..a5f2010a 100755 --- a/xap/image-roll/SlackBuild +++ b/xap/image-roll/SlackBuild @@ -1,7 +1,8 @@ #!/bin/bash # variables -VERSION=${VERSION:-"trunk"} +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 BUILD=${BUILD:-1} TAG=gwh @@ -24,7 +25,7 @@ mkdir -p $PKG # mise en place cd $TMP -[ ! -e $REPOSITORY ] && git clone https://github.com/weclaw1/image-roll.git $REPOSITORY +[ ! -e $REPOSITORY ] && git clone https://github.com/${GITHUB_REPO}.git $REPOSITORY cd $REPOSITORY git pull --all @@ -70,7 +71,7 @@ $PRGNAM: $PRGNAM: $PRGNAM: $PRGNAM: -$PRGNAM: https://github.com/weclaw1/image-roll +$PRGNAM: https://github.com/${GITHUB_REPO} EOF # empaquetage diff --git a/xap/kitty/SlackBuild b/xap/kitty/SlackBuild index cae4c61c..0e3aee84 100755 --- a/xap/kitty/SlackBuild +++ b/xap/kitty/SlackBuild @@ -7,7 +7,8 @@ CWD=$(pwd) OUTPUT=/tmp PRGNAM=$(basename $CWD) -VERSION=${VERSION:-"trunk"} +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 ARCH=$(uname -m) BUILD=1 @@ -24,7 +25,7 @@ rm -fr $PKG $TMP/$PRGNAM mkdir -p $PKG # mise en place -[ ! -e $REPOSITORY ] && git clone https://github.com/kovidgoyal/kitty.git $REPOSITORY +[ ! -e $REPOSITORY ] && git clone https://github.com/${GITHUB_REPO}.git $REPOSITORY cd $REPOSITORY git pull --all diff --git a/xap/leocad/SlackBuild b/xap/leocad/SlackBuild index 3a3573cb..cedd2e02 100755 --- a/xap/leocad/SlackBuild +++ b/xap/leocad/SlackBuild @@ -11,7 +11,8 @@ PKG=$TMP/pkg-$PRGNAM ARCH=$(uname -m) BUILD=1 -VERSION=${VERSION:-"trunk"} +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 REPOSITORY=/home/installs/SlackBuilds/repositories/$PRGNAM @@ -21,7 +22,7 @@ rm -fr $PKG $TMP/$PRGNAM mkdir -p $PKG # mise en place -[ ! -e $REPOSITORY ] && git clone https://github.com/leozide/leocad.git $REPOSITORY +[ ! -e $REPOSITORY ] && git clone https://github.com/${GITHUB_REPO}.git $REPOSITORY cd $REPOSITORY git pull --all @@ -43,7 +44,7 @@ cp -a docs/leocad.1 $PKG/usr/man/man1 find $PKG/usr/man -type f -exec gzip -9 {} \; for i in $( find $PKG/usr/man -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done -LIBRARY_URL=$(curl -s https://api.github.com/repos/leozide/leocad/releases | grep -o "http.*Library-.*zip" | head -n1) +LIBRARY_URL=$(curl -s https://api.github.com/repos/${GITHUB_REPO}/releases | grep -o "http.*Library-.*zip" | head -n1) LIBRARY_FILE=$(echo $LIBRARY_URL | grep -o "Library-[0-9.]*.zip") LIBRARY_VERSION=$(echo $LIBRARY_FILE | grep -o "[0-9.]*") [ ! -e $CWD/$LIBRARY_FILE ] && wget -c -O $CWD/$LIBRARY_FILE $LIBRARY_URL diff --git a/xap/nextcloud-client/SlackBuild b/xap/nextcloud-client/SlackBuild index 296405f7..0c714195 100755 --- a/xap/nextcloud-client/SlackBuild +++ b/xap/nextcloud-client/SlackBuild @@ -4,7 +4,8 @@ CWD=$(pwd) PRGNAM=$(basename $CWD) -VERSION=${VERSION:-"trunk"} +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 ARCH=${ARCH:-$(uname -m)} BUILD=1 @@ -24,7 +25,7 @@ mkdir -p $PKG # mise en place cd $TMP -[ ! -e $REPOSITORY ] && git clone https://github.com/nextcloud/desktop.git $REPOSITORY +[ ! -e $REPOSITORY ] && git clone https://github.com/${GITHUB_REPO}.git $REPOSITORY cd $REPOSITORY git pull --all @@ -76,7 +77,7 @@ $PRGNAM: $PRGNAM: $PRGNAM: $PRGNAM: -$PRGNAM: https://github.com/nextcloud/desktop +$PRGNAM: https://github.com/${GITHUB_REPO} $PRGNAM: EOF diff --git a/xap/polybar/SlackBuild b/xap/polybar/SlackBuild index 6d17fcdd..5509a523 100755 --- a/xap/polybar/SlackBuild +++ b/xap/polybar/SlackBuild @@ -1,7 +1,8 @@ #!/bin/bash # variables -VERSION=${VERSION:-"trunk"} +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 BUILD=${BUILD:-1} TAG=gwh @@ -24,7 +25,7 @@ mkdir -p $PKG # mise en place cd $TMP -[ ! -e $REPOSITORY ] && git clone https://github.com/polybar/polybar.git $REPOSITORY +[ ! -e $REPOSITORY ] && git clone https://github.com/${GITHUB_REPO}.git $REPOSITORY cd $REPOSITORY git pull --all diff --git a/xap/radeon-profile/SlackBuild b/xap/radeon-profile/SlackBuild index d1aebd1d..cdbbb512 100755 --- a/xap/radeon-profile/SlackBuild +++ b/xap/radeon-profile/SlackBuild @@ -11,7 +11,8 @@ PKG=$TMP/pkg-$PRGNAM ARCH=$(uname -m) BUILD=1 -VERSION=${VERSION:-"trunk"} +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 REPOSITORY=/home/installs/SlackBuilds/repositories/$PRGNAM @@ -21,7 +22,7 @@ rm -fr $PKG $TMP/$PRGNAM mkdir -p $PKG # mise en place -[ ! -e $REPOSITORY ] && git clone https://github.com/marazmista/radeon-profile.git $REPOSITORY +[ ! -e $REPOSITORY ] && git clone https://github.com/${GITHUB_REPO}.git $REPOSITORY cd $REPOSITORY git pull --all @@ -59,7 +60,7 @@ $PRGNAM: $PRGNAM: $PRGNAM: $PRGNAM: -$PRGNAM: https://github.com/marazmista/radeon-profile +$PRGNAM: https://github.com/${GITHUB_REPO} $PRGNAM: EOF diff --git a/xap/rkvm/SlackBuild b/xap/rkvm/SlackBuild index f1129cc3..b20cf34f 100755 --- a/xap/rkvm/SlackBuild +++ b/xap/rkvm/SlackBuild @@ -1,7 +1,8 @@ #!/bin/bash # variables -VERSION=${VERSION:-"trunk"} +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 BUILD=${BUILD:-1} TAG=gwh @@ -24,7 +25,7 @@ mkdir -p $PKG # mise en place cd $TMP -[ ! -e $REPOSITORY ] && git clone https://github.com/htrefil/rkvm.git $REPOSITORY +[ ! -e $REPOSITORY ] && git clone https://github.com/${GITHUB_REPO}.git $REPOSITORY cd $REPOSITORY git pull --all @@ -161,7 +162,7 @@ $PRGNAM: Switching between different clients is done by a configurable keyboard $PRGNAM: shortcut. $PRGNAM: $PRGNAM: (use $PREFIX/doc/$PRGNAM/gen-keys.sh) -$PRGNAM: https://github.com/htrefil/rkvm +$PRGNAM: https://github.com/${GITHUB_REPO} EOF # empaquetage diff --git a/xap/wezterm/SlackBuild b/xap/wezterm/SlackBuild index 3f27fcdd..a010bb7c 100755 --- a/xap/wezterm/SlackBuild +++ b/xap/wezterm/SlackBuild @@ -1,8 +1,9 @@ #!/bin/bash # variables -VERSION=${VERSION:-"trunk"} 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 TAG=gwh TMP=/tmp/$TAG @@ -24,7 +25,7 @@ mkdir -p $PKG # mise en place cd $TMP -[ ! -e $REPOSITORY ] && git clone https://github.com/wez/wezterm.git $REPOSITORY +[ ! -e $REPOSITORY ] && git clone https://github.com/${GITHUB_REPO}.git $REPOSITORY cd $REPOSITORY git pull --all @@ -71,7 +72,7 @@ $PRGNAM: $PRGNAM: $PRGNAM: $PRGNAM: https://wezfurlong.org/wezterm/ -$PRGNAM: https://github.com/wez/wezterm +$PRGNAM: https://github.com/${GITHUB_REPO} EOF # empaquetage diff --git a/xap/x48/SlackBuild b/xap/x48/SlackBuild index 1183827c..2ec2ae17 100755 --- a/xap/x48/SlackBuild +++ b/xap/x48/SlackBuild @@ -4,7 +4,8 @@ set -x PRGNAM=x48 BUILD=1 -VERSION=${VERSION:-"trunk"} +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 ARCH=$(uname -m) LIBSUFFIX=$(echo $ARCH | grep -o "\(64\)") @@ -25,7 +26,7 @@ mkdir -p $TMP rm -fr $PRGNAM $PKG # Fetching sources -[ ! -e $REPOSITORY ] && git clone https://github.com/gwenhael-le-moine/x48.git $REPOSITORY +[ ! -e $REPOSITORY ] && git clone https://github.com/${GITHUB_REPO}.git $REPOSITORY cd $REPOSITORY git pull --all diff --git a/xap/x49gp/SlackBuild b/xap/x49gp/SlackBuild index 59dc1eda..0446cf16 100755 --- a/xap/x49gp/SlackBuild +++ b/xap/x49gp/SlackBuild @@ -4,7 +4,8 @@ set -x CWD=$(pwd) PRGNAM=$(basename $CWD) -VERSION=${VERSION:-"trunk"} +GITHUB_REPO=gwenhael-le-moine/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 BUILD=1 @@ -26,7 +27,7 @@ mkdir -p $TMP rm -fr $TMP/$PRGNAM $PKG # Fetching sources -[ ! -e $REPOSITORY ] && git clone https://github.com/gwenhael-le-moine/x49gp.git $REPOSITORY +[ ! -e $REPOSITORY ] && git clone https://github.com/${GITHUB_REPO}.git $REPOSITORY cd $REPOSITORY git pull --all @@ -98,7 +99,7 @@ $PRGNAM: Post-installation setup: $PRGNAM: $ x49gp-bootstrap-config $PRGNAM: $PRGNAM: https://sourceforge.net/projects/x49gp/ -$PRGNAM: https://github.com/gwenhael-le-moine/x49gp +$PRGNAM: https://github.com/${GITHUB_REPO} EOF rm -f $PKG/{,usr/}lib$(uname -m | grep -o 64)/*.la diff --git a/y/steamtinkerlaunch/SlackBuild b/y/steamtinkerlaunch/SlackBuild index 25a3ee4c..4baff363 100755 --- a/y/steamtinkerlaunch/SlackBuild +++ b/y/steamtinkerlaunch/SlackBuild @@ -1,6 +1,9 @@ #!/bin/bash # 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 + TAG=gwh TMP=/tmp/$TAG CWD=$(pwd) @@ -11,7 +14,6 @@ PKG=$TMP/pkg-$PRGNAM ARCH=$(uname -m) BUILD=1 -VERSION=${VERSION:-"trunk"} REPOSITORY=/home/installs/SlackBuilds/repositories/$PRGNAM @@ -21,7 +23,7 @@ rm -fr $PKG $TMP/$PRGNAM mkdir -p $PKG # mise en place -[ ! -e $REPOSITORY ] && git clone https://github.com/frostworx/steamtinkerlaunch.git $REPOSITORY +[ ! -e $REPOSITORY ] && git clone https://github.com/${GITHUB_REPO}.git $REPOSITORY cd $REPOSITORY git pull --all @@ -65,7 +67,7 @@ $PRGNAM: options for games quickly on the fly (see Features) $PRGNAM: $PRGNAM: $PRGNAM: -$PRGNAM: https://github.com/frostworx/steamtinkerlaunch +$PRGNAM: https://github.com/${GITHUB_REPO} $PRGNAM: EOF