aboutsummaryrefslogtreecommitdiff
path: root/core/sbase/build
blob: 437ffb66b814bc724723a0046c5e305954f472ad (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/bin/sh -e

[ "$CPT_CROSS_TRIPLET" ] && CC=$CPT_CROSS_TRIPLET-cc \
                            AR=$CPT_CROSS_TRIPLET-ar \
                            RANLIB=$CPT_CROSS_TRIPLET-ranlib

: "${CC:=cc}" "${AR:=ar}" "${RANLIB:=ranlib}"

make CC=$CC AR=$AR RANLIB=$RANLIB LDFLAGS="$LDFLAGS -static" sbase-box
make PREFIX=/usr DESTDIR="$1" sbase-box-install

unlink "$1/usr/bin/tar"
unlink "$1/usr/bin/sed"