up version
This commit is contained in:
parent
324979304b
commit
79de4b24af
1 changed files with 9 additions and 6 deletions
|
@ -7,19 +7,22 @@ OUTPUT=${OUTPUT:-/tmp}
|
|||
|
||||
PRGNAM=$(basename $CWD)
|
||||
ARCH=${ARCH:-$(uname -m | grep -q 64 && echo "x86_64" || echo "i386")}
|
||||
VERSION=${VERSION:-0.1.3.1}
|
||||
VERSION=${VERSION:-0.1.6.0}
|
||||
BUILD=${BUILD:-1}
|
||||
TAG=${TAG:-cyco}
|
||||
|
||||
rm -rf $PKG
|
||||
mkdir -p $PKG/usr/bin $OUTPUT
|
||||
cd $PKG/usr/bin/
|
||||
mkdir -p $PKG/usr/{bin,doc} $OUTPUT
|
||||
cd $PKG/usr/doc/
|
||||
|
||||
wget -c https://github.com/commercialhaskell/stack/releases/download/v${VERSION}/stack-${VERSION}-${ARCH}-linux.gz -O stack.gz
|
||||
gunzip stack.gz
|
||||
wget -c https://github.com/commercialhaskell/stack/releases/download/v${VERSION}/stack-${VERSION}-linux-${ARCH}.tar.gz -O stack.tar.gz
|
||||
tar xvf stack.tar.gz
|
||||
rm stack.tar.gz
|
||||
mv stack-${VERSION}-linux-${ARCH} stack
|
||||
mv stack/stack $PKG/usr/bin/
|
||||
|
||||
# Make sure top-level perms are correct:
|
||||
chmod 0755 stack
|
||||
chmod 0755 $PKG/usr/bin/stack
|
||||
|
||||
mkdir -p $PKG/install
|
||||
cat <<EOF > $PKG/install/slack-desc
|
||||
|
|
Loading…
Reference in a new issue