blob: 88fd83c3034ac48ddecbe339493d103ad9162d3a (
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
31
32
33
34
35
|
build() {
unset CC
pushd build > /dev/null
../configure \
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 \
--enable-ronn \
--disable-silent-rules \
--disable-tests \
--disable-valgrind \
--disable-git-receiver \
--disable-make-embedded \
--disable-runserver
popd > /dev/null
make -C build blogc.exe
PN="$(grep PACKAGE_TARNAME build/config.h | cut -d\" -f2)"
PV="$(grep PACKAGE_VERSION build/config.h | cut -d\" -f2)"
DEST_DIR="${PN}-${PV}-${TARGET}"
rm -rf "${DEST_DIR}"
mkdir -p "${DEST_DIR}"
cp build/.libs/blogc.exe "${DEST_DIR}/"
cp LICENSE "${DEST_DIR}/"
cp README.md "${DEST_DIR}/"
zip "build/${DEST_DIR}.zip" "${DEST_DIR}"/*
}
deploy() {
FILES=( build/*.zip )
}
|