[retro] build from git
This commit is contained in:
parent
542a49c71e
commit
b1fba01e4c
1 changed files with 9 additions and 5 deletions
|
@ -10,22 +10,26 @@ CWD=$(pwd)
|
||||||
PRGNAM=$(basename $CWD)
|
PRGNAM=$(basename $CWD)
|
||||||
PKG=$TMP/pkg-$PRGNAM
|
PKG=$TMP/pkg-$PRGNAM
|
||||||
OUTPUT=${OUTPUT:-/tmp}
|
OUTPUT=${OUTPUT:-/tmp}
|
||||||
|
VERSION=${VERSION:-trunk}
|
||||||
|
|
||||||
ARCH=${ARCH:-$(uname -m)}
|
ARCH=${ARCH:-$(uname -m)}
|
||||||
|
|
||||||
|
REPOSITORY=/home/installs/SlackBuilds/repositories/$PRGNAM
|
||||||
|
|
||||||
PREFIX=${PREFIX:-/usr}
|
PREFIX=${PREFIX:-/usr}
|
||||||
|
|
||||||
# nettoyage préalable
|
# nettoyage préalable
|
||||||
rm -fr $PKG $TMP/$PRGNAM-$VERSION
|
rm -fr $PKG $TMP/$PRGNAM
|
||||||
|
|
||||||
mkdir -p $PKG
|
mkdir -p $PKG
|
||||||
|
|
||||||
# mise en place
|
# mise en place
|
||||||
cd $TMP
|
cd $TMP
|
||||||
[ ! -e $CWD/${PRGNAM}_latest.tar.gz ] && wget -c http://forthworks.com/retro/r/latest.tar.gz -O $CWD/${PRGNAM}_latest.tar.gz
|
[ ! -e $REPOSITORY ] && git clone https://git.sr.ht/~crc_/retroforth $REPOSITORY
|
||||||
tar xf $CWD/${PRGNAM}_latest.tar.gz
|
|
||||||
VERSION=$(find -name RETRO\* -type d | sed 's|./RETRO||')
|
cp -R $REPOSITORY $TMP/$PRGNAM
|
||||||
cd $TMP/RETRO${VERSION}
|
cd $TMP/$PRGNAM
|
||||||
|
[ "x$VERSION" == "xtrunk" ] && VERSION="git_$(git log -1 --format=%h_%ad --date=format:%Y.%m.%d)" || git checkout $VERSION
|
||||||
|
|
||||||
make PREFIX=$PREFIX
|
make PREFIX=$PREFIX
|
||||||
make install PREFIX=$PREFIX DESTDIR=$PKG MANDIR=$PREFIX/man/man1 DOCSDIR=$PREFIX/doc/$PRGNAM/ EXAMPLESDIR=$PREFIX/doc/$PRGNAM/examples/
|
make install PREFIX=$PREFIX DESTDIR=$PKG MANDIR=$PREFIX/man/man1 DOCSDIR=$PREFIX/doc/$PRGNAM/ EXAMPLESDIR=$PREFIX/doc/$PRGNAM/examples/
|
||||||
|
|
Loading…
Reference in a new issue