[wlroots] github -> gitlab

This commit is contained in:
Gwenhael Le Moine 2021-11-02 09:23:55 +01:00
parent 8bd7f51456
commit 9ce3ec0391
No known key found for this signature in database
GPG key ID: FDFE3669426707A7

View file

@ -1,7 +1,6 @@
#!/bin/bash -e
# variables
GITHUB_REPO=swaywm/wlroots
VERSION=${VERSION:-$(curl -s https://api.github.com/repos/${GITHUB_REPO}/releases/latest | jq -r .tag_name | sed 's|^null$|trunk|')} # or VERSION=trunk
BUILD=1
@ -25,7 +24,7 @@ rm -fr $PKG $TMP/$PRGNAM
mkdir -p $PKG
# mise en place
[ ! -e $REPOSITORY ] && git clone https://github.com/${GITHUB_REPO} $REPOSITORY
[ ! -e $REPOSITORY ] && git clone https://gitlab.freedesktop.org/wlroots/wlroots.git $REPOSITORY
cd $REPOSITORY
git pull --all
@ -34,7 +33,10 @@ cp -R $REPOSITORY $TMP/
cd $TMP/$PRGNAM/
[ "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/
meson setup \
--prefix /usr \
--mandir /usr/man/ \
build/
ninja -C build/
cd build/
meson install --destdir=$PKG
@ -70,7 +72,7 @@ $PRGNAM:
$PRGNAM:
$PRGNAM:
$PRGNAM:
$PRGNAM: https://github.com/${GITHUB_REPO}
$PRGNAM: https://gitlab.freedesktop.org/wlroots/wlroots.git
EOF
# empaquetage