less hardcoded values

This commit is contained in:
Gwenhael Le Moine 2021-08-08 11:44:44 +02:00
parent febcd7aad6
commit c0b1103dd5
No known key found for this signature in database
GPG key ID: FDFE3669426707A7

View file

@ -18,12 +18,12 @@ PREFIX=/usr
rm -fr $PKG
# 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
cd $TMP
tar xvf $CWD/zig-linux-x86_64-${VERSION}.tar.gz
cd zig-linux-x86_64-${VERSION}
tar xvf $CWD/zig-linux-${ARCH}-${VERSION}.tar.gz
cd zig-linux-${ARCH}-${VERSION}
# installation
mkdir -p $PKG$PREFIX/bin/