[*github] build from latest tag if defined

This commit is contained in:
Gwenhael Le Moine 2021-09-23 15:52:55 +02:00
parent e3f9ff2e25
commit b1227d711d
No known key found for this signature in database
GPG key ID: FDFE3669426707A7
82 changed files with 286 additions and 472 deletions

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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 <<EOF > $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

View file

@ -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 <<EOF
#!/bin/bash
$PREFIX/bin/broot --print-shell-function bash > /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 <<EOF > $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

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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 its small, fast, and portable.
$PRGNAM:
$PRGNAM:
$PRGNAM: https://github.com/ogham/exa
$PRGNAM: https://github.com/${GITHUB_REPO}
EOF
# empaquetage

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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}

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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 <<EOF > $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

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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 )

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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 \

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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