Merge branch 'master' of github.com:gwenhael-le-moine/slackbuilds

This commit is contained in:
Gwenhael Le Moine 2022-02-16 12:46:00 +01:00
commit ae3ab82b57
No known key found for this signature in database
GPG key ID: FDFE3669426707A7
4 changed files with 10 additions and 8 deletions

1
.gitignore vendored
View file

@ -43,3 +43,4 @@ xap/st/patches/st-vertcenter*
/ap/hledger-bin/LICENSE.* /ap/hledger-bin/LICENSE.*
/ap/hledger-bin/*.md.* /ap/hledger-bin/*.md.*
/xap/x49gp/newrplfw.bin /xap/x49gp/newrplfw.bin
/d/crystal/completion.zsh

View file

@ -19,7 +19,7 @@ mkdir -p $REPOSITORY
echo $ARCH | grep -q 64 && SRC_ARCH=x64 echo $ARCH | grep -q 64 && SRC_ARCH=x64
DOCS="CHANGES.md CONTRIBUTING.md CREDITS.md LICENSE README.md ROADMAP.md" DOCS="CHANGES.md CONTRIBUTING.md CREDITS.md LICENSE README.md ROADMAP.md"
wget -c https://github.com/simonmichael/hledger/releases/download/${VERSION}/hledger-linux-static-${SRC_ARCH}.zip -O $REPOSITORY/hledger-linux-static-${SRC_ARCH}-${VERSION}.zip wget -c https://github.com/simonmichael/hledger/releases/download/${VERSION}/hledger-linux-${SRC_ARCH}.zip -O $REPOSITORY/hledger-linux-${SRC_ARCH}-${VERSION}.zip
for d in $DOCS; do for d in $DOCS; do
wget -c https://raw.githubusercontent.com/simonmichael/hledger/${VERSION}/${d} -O $REPOSITORY/${d}.${VERSION} wget -c https://raw.githubusercontent.com/simonmichael/hledger/${VERSION}/${d} -O $REPOSITORY/${d}.${VERSION}
done done
@ -27,10 +27,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-static-${SRC_ARCH}-${VERSION}.zip unzip $REPOSITORY/hledger-linux-${SRC_ARCH}-${VERSION}.zip
mv hledger-linux-static-${SRC_ARCH} hledger mv hledger-linux-${SRC_ARCH} hledger
mv hledger-ui-linux-static-${SRC_ARCH} hledger-ui mv hledger-ui-linux-${SRC_ARCH} hledger-ui
mv hledger-web-linux-static-${SRC_ARCH} hledger-web 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/

View file

@ -42,8 +42,9 @@ cd $TMP/$PRGNAM
make -j3 PREFIX=$PREFIX make -j3 PREFIX=$PREFIX
# installation # installation
make install PREFIX=$PREFIX DOC_DIR=$PREFIX/doc/$PRGNAM DESTDIR=$PKG mkdir -p $PKG
mv $PKG$PREFIX/share/man $PKG$PREFIX/man PREFIX=$PREFIX DOC_DIR=$PREFIX/doc/$PRGNAM DESTDIR=$PKG make install PREFIX=$PREFIX DOC_DIR=$PREFIX/doc/$PRGNAM DESTDIR=$PKG
[ -d $PKG$PREFIX/share/man ] && mv $PKG$PREFIX/share/man $PKG$PREFIX/man
# correction # correction
cd $PKG cd $PKG

View file

@ -1,7 +1,7 @@
#!/bin/bash #!/bin/bash
# variables # variables
GITHUB_REPO=${GITHUB_REPO} GITHUB_REPO=postmodern/ruby-install
VERSION=${VERSION:-latest} VERSION=${VERSION:-latest}
TAG=gwh TAG=gwh