master hovercats/oakiss / repo / valgrind / build
 1#!/bin/sh -e
 2
 3# Disable stripping
 4: > nostrip
 5
 6# Bypass ccache
 7export CC="/bin/cc"
 8export CXX="/bin/c++"
 9export CFLAGS="$CFLAGS -fno-stack-protector -no-pie"
10
11./configure \
12    --prefix=/usr \
13    --sysconfdir=/etc \
14    --libexecdir=/usr/lib \
15    --mandir=/usr/share/man \
16    --infodir=/usr/share/info \
17    --localstatedir=/var \
18    --without-mpicc
19
20make
21make DESTDIR="$1" install
22
23# Compress manpages
24find "$1/usr/share/man" -type f -exec gzip -n -9 {} +
25
26rm -r "$1/usr/share/doc"