blob: 0c4fba42b47dbf312dad3c5600ba6be5e37deebc (
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
|
build() {
default_configure \
CFLAGS="-Wall -g -O2" \
--disable-tests \
--disable-git-receiver \
--disable-runserver \
--enable-make-embedded
make LDFLAGS="-all-static"
rm -rf root
mkdir -p root
local pv="$(grep PACKAGE_VERSION config.h | cut -d\" -f2)"
install -m 755 blogc root/blogc
install -m 644 src/blogc-github-lambda/lambda_function.py root/lambda_function.py
install -m 644 ../LICENSE root/LICENSE
strip root/blogc
pushd root > /dev/null
zip "../blogc-github-lambda-${pv}.zip" *
popd > /dev/null
install -m 755 root/blogc "blogc-static-amd64-${pv}"
xz -z "blogc-static-amd64-${pv}"
}
deploy() {
FILES=( *.zip blogc-static-*.xz )
[[ ${RV} -eq 0 ]] && [[ "x${CC}" = "xgcc" ]]
}
|