|
|
@@ -0,0 +1,33 @@ |
|
|
|
SHELL:=/bin/bash |
|
|
|
|
|
|
|
seasocks_: |
|
|
|
git clone https://github.com/rayburgemeestre/seasocks --branch v1.4.3 |
|
|
|
bash ../ubuntu1804.sh make impl |
|
|
|
# make package |
|
|
|
|
|
|
|
impl: |
|
|
|
update-alternatives --install /usr/bin/c++ c++ /usr/bin/clang++-10 40 |
|
|
|
update-alternatives --install /usr/bin/cc cc /usr/bin/clang-10 40 |
|
|
|
update-alternatives --install /usr/bin/clang++ clang++ /usr/bin/clang++-10 40 |
|
|
|
update-alternatives --install /usr/bin/clang clang /usr/bin/clang-10 40 |
|
|
|
update-alternatives --install /usr/bin/ld ld /usr/bin/ld.lld-10 40 |
|
|
|
apt-get update && apt-get install libz-dev -y && \ |
|
|
|
pushd seasocks && \ |
|
|
|
mkdir build && pushd build && \ |
|
|
|
CXX=$$(which c++) cmake -DCMAKE_INSTALL_PREFIX=$$PWD/seasocks_out .. && \ |
|
|
|
make -j $$(nproc) && \ |
|
|
|
make install |
|
|
|
|
|
|
|
package: |
|
|
|
rm -rf out |
|
|
|
mkdir -p out/opt/cppse/build/seasocks |
|
|
|
cp -prv seasocks/build/seasocks_out/* out/opt/cppse/build/seasocks/ |
|
|
|
rm -rf seasocks_*_amd64.deb |
|
|
|
docker run -v "$$(pwd):/src/" rayburgemeestre/fpm-ubuntu:18.04 fpm -v 1.1 -s dir -t deb -n seasocks --license MPL2 --maintainer "Ray Burgemeestre <ray@cppse.nl>" --description "seasocks - build dependency" --url "https://github.com/mattgodbolt/seasocks" --deb-generate-changes -C /src/out |
|
|
|
|
|
|
|
clean: |
|
|
|
rm -rf seasocks |
|
|
|
rm -rf out |
|
|
|
|
|
|
|
shell: |
|
|
|
FLAGS="-i --privileged" bash ../ubuntu1804.sh /bin/bash |