mirror of
https://codeberg.org/kiss-community/repo
synced 2024-08-20 21:26:18 +00:00
29 lines
761 B
Bash
Executable File
29 lines
761 B
Bash
Executable File
#!/bin/sh -e
|
|
|
|
for patch in *.patch; do
|
|
patch -p1 < "$patch"
|
|
done
|
|
|
|
./configure \
|
|
--prefix=/usr \
|
|
--release-channel=stable \
|
|
--disable-rpath \
|
|
--disable-docs \
|
|
--disable-full-bootstrap \
|
|
--disable-codegen-tests \
|
|
--enable-vendor \
|
|
--enable-local-rust \
|
|
--llvm-root=/usr \
|
|
--build=x86_64-unknown-linux-musl \
|
|
--target=x86_64-unknown-linux-musl \
|
|
--set=target.x86_64-unknown-linux-musl.llvm-config=/usr/bin/llvm-config \
|
|
--set=target.x86_64-unknown-linux-musl.crt-static=false
|
|
|
|
# rust checksums files in vendor/, but we patch a few files.
|
|
for vendor in libc lzma-sys typenum backtrace-sys; do
|
|
sed -i 's/\("files":{\)[^}]*/\1/' vendor/$vendor/.cargo-checksum.json
|
|
done
|
|
|
|
make
|
|
DESTDIR="$1" ./x.py install -v
|