less hardcoded values
This commit is contained in:
parent
febcd7aad6
commit
c0b1103dd5
1 changed files with 3 additions and 3 deletions
|
@ -18,12 +18,12 @@ PREFIX=/usr
|
||||||
rm -fr $PKG
|
rm -fr $PKG
|
||||||
|
|
||||||
# unpacking
|
# unpacking
|
||||||
[ ! -e $CWD/zig-linux-x86_64-${VERSION}.tar.gz ] && wget -c https://ziglang.org/download/0.8.0/zig-linux-x86_64-${VERSION}.tar.xz -O $CWD/zig-linux-x86_64-${VERSION}.tar.gz
|
[ ! -e $CWD/zig-linux-${ARCH}-${VERSION}.tar.gz ] && wget -c https://ziglang.org/download/${VERSION}/zig-linux-${ARCH}-${VERSION}.tar.xz -O $CWD/zig-linux-${ARCH}-${VERSION}.tar.gz
|
||||||
|
|
||||||
mkdir -p $TMP
|
mkdir -p $TMP
|
||||||
cd $TMP
|
cd $TMP
|
||||||
tar xvf $CWD/zig-linux-x86_64-${VERSION}.tar.gz
|
tar xvf $CWD/zig-linux-${ARCH}-${VERSION}.tar.gz
|
||||||
cd zig-linux-x86_64-${VERSION}
|
cd zig-linux-${ARCH}-${VERSION}
|
||||||
|
|
||||||
# installation
|
# installation
|
||||||
mkdir -p $PKG$PREFIX/bin/
|
mkdir -p $PKG$PREFIX/bin/
|
||||||
|
|
Loading…
Reference in a new issue