[hledger] archive changed

This commit is contained in:
Gwenhael Le Moine 2022-12-02 16:28:56 +01:00
parent 622013ef25
commit cb83e8c14d
No known key found for this signature in database
GPG key ID: FDFE3669426707A7

View file

@ -5,7 +5,7 @@ CWD=$(pwd)
PRGNAM=$(basename $CWD) PRGNAM=$(basename $CWD)
VERSION=${VERSION:-$(curl -s https://api.github.com/repos/simonmichael/hledger/releases/latest | grep tag_name | grep -o "[0-9.]*")} VERSION=${VERSION:-$(curl -s https://api.github.com/repos/simonmichael/hledger/releases/latest | grep tag_name | grep -o "[0-9.]*")}
ARCH=${ARCH:-$(uname -m)} ARCH=${ARCH:-$(uname -m)}
BUILD=${BUILD:-1} BUILD=${BUILD:-2}
TAG=${TAG:-gwh} TAG=${TAG:-gwh}
TMP=${TMP:-/tmp/$TAG} TMP=${TMP:-/tmp/$TAG}
@ -32,9 +32,10 @@ rm -fr $PKG
mkdir -p $PKG$PREFIX/bin mkdir -p $PKG$PREFIX/bin
cd $PKG$PREFIX/bin cd $PKG$PREFIX/bin
unzip $REPOSITORY/hledger-linux-${SRC_ARCH}-${VERSION}.zip unzip $REPOSITORY/hledger-linux-${SRC_ARCH}-${VERSION}.zip
mv hledger-linux-${SRC_ARCH} hledger tar xvf hledger-linux-x64.tar && rm hledger-linux-x64.tar
mv hledger-ui-linux-${SRC_ARCH} hledger-ui # mv hledger-linux-${SRC_ARCH} hledger
mv hledger-web-linux-${SRC_ARCH} hledger-web # mv hledger-ui-linux-${SRC_ARCH} hledger-ui
# mv hledger-web-linux-${SRC_ARCH} hledger-web
chmod +x $PKG$PREFIX/bin/* chmod +x $PKG$PREFIX/bin/*
mkdir -p $PKG$PREFIX/doc/hledger/ mkdir -p $PKG$PREFIX/doc/hledger/