blob: 8f630c7b670796f8d6210ae7cdaaca60c4c38d0e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
build() {
default_configure \
CC= \
CFLAGS="-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions --param=ssp-buffer-size=4" \
--host=x86_64-w64-mingw32 \
--target=x86_64-w64-mingw32 \
--disable-tests \
--disable-git-receiver \
--disable-make \
--disable-runserver
make
local pn="$(grep PACKAGE_TARNAME config.h | cut -d\" -f2)"
local pv="$(grep PACKAGE_VERSION config.h | cut -d\" -f2)"
local dest_dir="${pn}-${pv}-${TARGET}"
rm -rf "${dest_dir}"
mkdir -p "${dest_dir}"
cp .libs/blogc.exe "${dest_dir}/"
cp ../LICENSE "${dest_dir}/"
cp ../README.md "${dest_dir}/"
zip "${dest_dir}.zip" "${dest_dir}"/*
}
deploy() {
FILES=( *.zip )
[[ ${RV} -eq 0 ]] && [[ "x${CC}" = "xgcc" ]]
}
|