[crystal] 1.2.0

This commit is contained in:
Gwenhael Le Moine 2021-10-15 09:23:43 +02:00
parent 3ca71278ac
commit 961f9f0368
No known key found for this signature in database
GPG key ID: FDFE3669426707A7

View file

@ -5,7 +5,7 @@ CWD=$(pwd)
PRGNAM=$(basename $CWD) PRGNAM=$(basename $CWD)
ARCH=$(uname -m) ARCH=$(uname -m)
BUILD=5 BUILD=6
TAG=gwh TAG=gwh
OUTPUT=/tmp OUTPUT=/tmp
@ -35,15 +35,12 @@ cd $PKG
tar xvf $REPOSITORY/crystal-${VERSION}-linux-${ARCH}.tar.gz tar xvf $REPOSITORY/crystal-${VERSION}-linux-${ARCH}.tar.gz
mv crystal-$VERSION $PKG$PREFIX mv crystal-$VERSION $PKG$PREFIX
mkdir -p $PKG$PREFIX/doc/ mkdir -p $PKG$PREFIX/doc/
mv $PKG$PREFIX/share/doc $PKG$PREFIX/doc/$PRGNAM
mv $PKG$PREFIX/share/licenses $PKG$PREFIX/doc/$PRGNAM mv $PKG$PREFIX/share/licenses $PKG$PREFIX/doc/$PRGNAM
mv $PKG$PREFIX/share/man $PKG$PREFIX/ mv $PKG$PREFIX/share/man $PKG$PREFIX/
mkdir -p $PKG$PREFIX/share/zsh/site-functions/ mkdir -p $PKG$PREFIX/share/zsh/site-functions/
cp -R $REPOSITORY/completion.zsh $PKG$PREFIX/share/zsh/site-functions/_crystal cp -R $REPOSITORY/completion.zsh $PKG$PREFIX/share/zsh/site-functions/_crystal
# sed -i "s|INSTALL_DIR=.*|INSTALL_DIR=$PREFIX/libexec/$PRGNAM|g" $PKG$PREFIX/bin/crystal
# packaging # packaging
cd $PKG cd $PKG
mkdir install mkdir install