sernatur/build_linux_package.sh

15 lines
365 B
Bash
Raw Normal View History

2018-10-18 16:31:50 -03:00
#!/bin/sh -eu
curdir=`pwd`
rm -rf buildtmp
mkdir buildtmp
2018-11-01 21:52:30 -03:00
LDFLAGS=-static-libstdc++ meson buildtmp -D bundle_libs=true --buildtype=release --prefix=/tmp/sernatur --libdir=lib --strip
2018-10-18 16:31:50 -03:00
ninja -C buildtmp install
rm -rf buildtmp
cp README.md /tmp/sernatur
2018-10-18 17:36:38 -03:00
cp LICENSE /tmp/sernatur
2018-10-18 16:31:50 -03:00
cd /tmp/
tar czf sernatur.tar.gz sernatur
mv sernatur.tar.gz "$curdir"
rm -rf sernatur