From 5dad8a25be4e946688ad5902238ed54b9d870cdb Mon Sep 17 00:00:00 2001 From: Gwenhael Le Moine Date: Fri, 25 Aug 2023 13:27:23 +0200 Subject: [PATCH] [d/factor-lang] update sources before building --- d/factor-lang/SlackBuild | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/d/factor-lang/SlackBuild b/d/factor-lang/SlackBuild index 06065e99..1543947f 100755 --- a/d/factor-lang/SlackBuild +++ b/d/factor-lang/SlackBuild @@ -7,7 +7,7 @@ PRGNAM=$(basename $CWD) ARCH=$(uname -m) GITHUB_REPO=factor/factor VERSION=${VERSION:-$(curl -s https://api.github.com/repos/${GITHUB_REPO}/releases/latest | grep tag_name | grep -o "[0-9.]*")} -BUILD=1 +BUILD=${BUILD:-3} TAG=gwh OUTPUT=/tmp @@ -25,6 +25,8 @@ rm -fr $PKG $TMP/$PRGNAM # mise en place cd $TMP [ ! -e $REPOSITORY ] && git clone https://github.com/${GITHUB_REPO}.git $REPOSITORY +cd $REPOSITORY +git pull --all [ -e $TMP/$PRGNAM ] && rm -fr $TMP/$PRGNAM cp -R $REPOSITORY $TMP/$PRGNAM @@ -40,12 +42,13 @@ mkdir -p $PKG$PREFIX/libexec/$PRGNAM cp -a * $PKG$PREFIX/libexec/$PRGNAM mkdir -p $PKG$PREFIX/{bin,doc/$PRGNAM} -cat < $PKG$PREFIX/bin/$PRGNAM +cat < $PKG$PREFIX/bin/factor #!/bin/bash cd $PREFIX/libexec/$PRGNAM -./$PRGNAM \$@ +./factor \$@ EOF -chmod +x $PKG$PREFIX/bin/$PRGNAM +chmod +x $PKG$PREFIX/bin/factor + ( cd $PKG$PREFIX/doc/$PRGNAM ln -s ../libexec/$PRGNAM/readme.html ln -s ../libexec/$PRGNAM/license.txt