Skip to content
Snippets Groups Projects
Commit 7c4428bb authored by Recolic K's avatar Recolic K
Browse files

build script done

parent 54958620
No related branches found
No related tags found
No related merge requests found
*.tar.gz
# image: ubuntu:20.04
# build time
apt install -y autoconf autoconf-archive autoconf2.13 automake autotools-dev libboost1.71-all-dev build-essential git libbz2-dev libmagic-dev libnss-db libsodium-dev libssl-dev libtool shtool xz-utils libgraphicsmagick1-dev libgraphicsmagick-q16-3 libpng-dev libicu-dev libjemalloc-dev liblz4-dev libzstd-dev librocksdb-dev clang llvm-dev
git clone https://github.com/matrix-construct/construct
cd construct
./autogen.sh
./configure --with-included-rocksdb=v6.12.7
make -j$(nproc)
make install DESTDIR=/fakeroot
cp ./deps/rocksdb/librocksdb.so* /fakeroot/usr/lib/
strip --strip-debug /fakeroot/usr/lib/*.so*
cd /fakeroot && tar -cvzf construct-pkg.tar.gz usr
#!/bin/bash
# image: ubuntu:20.04
function build-in-docker () {
# build time dependencies
apt update
DEBIAN_FRONTEND="noninteractive" apt install -y autoconf autoconf-archive autoconf2.13 automake autotools-dev libboost1.71-all-dev build-essential git libbz2-dev libmagic-dev libnss-db libsodium-dev libssl-dev libtool shtool xz-utils libgraphicsmagick1-dev libgraphicsmagick-q16-3 libpng-dev libicu-dev libjemalloc-dev liblz4-dev libzstd-dev librocksdb-dev clang llvm-dev &&
git clone https://github.com/matrix-construct/construct &&
cd construct &&
./autogen.sh &&
./configure --with-included-rocksdb=v6.12.7 &&
make -j$(nproc) &&
make install DESTDIR=/fakeroot &&
cp ./deps/rocksdb/librocksdb.so* /fakeroot/usr/lib/ &&
strip --strip-debug /fakeroot/usr/lib/*.so* &&
cd /fakeroot && tar -cvzf construct-pkg.tar.gz usr
exit $?
}
function build-host () {
docker run -ti -v $(pwd):/build ubuntu:20.04 bash -c 'cd / && /build/build.sh in-docker && mv /fakeroot/construct-pkg.tar.gz /build/'
exit $?
}
[[ "$1" = in-docker ]] && build-in-docker
[[ "$1" != in-docker ]] && build-host
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment