mirror of
https://codeberg.org/gwh/slackbuilds.git
synced 2024-11-16 19:51:19 +01:00
trunk instead of git
This commit is contained in:
parent
01c7e912b2
commit
52265bd942
2 changed files with 10 additions and 6 deletions
|
@ -1,10 +1,12 @@
|
|||
#!/bin/sh
|
||||
#!/bin/bash
|
||||
|
||||
set -e
|
||||
|
||||
# variables
|
||||
CWD=$(pwd)
|
||||
|
||||
PRGNAM=$(basename $CWD)
|
||||
VERSION=${VERSION:-$(date +"%Y.%m.%d_%H.%M")}
|
||||
VERSION=${VERSION:-"trunk"}
|
||||
ARCH=${ARCH:-$(uname -m)}
|
||||
BUILD=1
|
||||
|
||||
|
@ -27,12 +29,14 @@ mkdir -p $PKG
|
|||
# mise en place
|
||||
cd $TMP
|
||||
[ ! -e $REPOSITORY ] && git clone https://github.com/HowardHinnant/date.git $REPOSITORY
|
||||
cd $REPOSITORY
|
||||
git pull --all
|
||||
|
||||
VERSION="git_$( cd $REPOSITORY && git log -1 --format=%h_%ad --date=format:%Y.%m.%d )"
|
||||
cp -R $REPOSITORY $TMP/$PRGNAM
|
||||
|
||||
cd $TMP/$PRGNAM
|
||||
|
||||
[ "x$VERSION" == "xtrunk" ] && VERSION="git_$( cd $REPOSITORY && git log -1 --format=%h_%ad --date=format:%Y.%m.%d )" || git checkout $VERSION
|
||||
|
||||
# configuration
|
||||
cmake \
|
||||
-DCMAKE_INSTALL_PREFIX=$PREFIX \
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
set -e
|
||||
|
||||
# variables
|
||||
VERSION=${VERSION:-"git"}
|
||||
VERSION=${VERSION:-"trunk"}
|
||||
BUILD=1
|
||||
|
||||
TAG=gwh
|
||||
|
@ -32,7 +32,7 @@ git pull --all
|
|||
cp -R $REPOSITORY $TMP/
|
||||
|
||||
cd $TMP/$PRGNAM/
|
||||
[ "x$VERSION" == "xgit" ] && VERSION="git_$(git log -1 --format=%h_%ad --date=format:%Y.%m.%d)" || git checkout $VERSION
|
||||
[ "x$VERSION" == "xtrunk" ] && VERSION="git_$(git log -1 --format=%h_%ad --date=format:%Y.%m.%d)" || git checkout $VERSION
|
||||
|
||||
meson setup --prefix /usr --mandir /usr/man/ build/
|
||||
ninja -C build/
|
||||
|
|
Loading…
Reference in a new issue