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/*.md.*
/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
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
wget -c https://raw.githubusercontent.com/simonmichael/hledger/${VERSION}/${d} -O $REPOSITORY/${d}.${VERSION}
done
@ -27,10 +27,10 @@ rm -fr $PKG
mkdir -p $PKG$PREFIX/bin
cd $PKG$PREFIX/bin
unzip $REPOSITORY/hledger-linux-static-${SRC_ARCH}-${VERSION}.zip
mv hledger-linux-static-${SRC_ARCH} hledger
mv hledger-ui-linux-static-${SRC_ARCH} hledger-ui
mv hledger-web-linux-static-${SRC_ARCH} hledger-web
unzip $REPOSITORY/hledger-linux-${SRC_ARCH}-${VERSION}.zip
mv hledger-linux-${SRC_ARCH} hledger
mv hledger-ui-linux-${SRC_ARCH} hledger-ui
mv hledger-web-linux-${SRC_ARCH} hledger-web
chmod +x $PKG$PREFIX/bin/*
mkdir -p $PKG$PREFIX/doc/hledger/

View file

@ -42,8 +42,9 @@ cd $TMP/$PRGNAM
make -j3 PREFIX=$PREFIX
# installation
make install PREFIX=$PREFIX DOC_DIR=$PREFIX/doc/$PRGNAM DESTDIR=$PKG
mv $PKG$PREFIX/share/man $PKG$PREFIX/man
mkdir -p $PKG
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
cd $PKG

View file

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