blob: aa99e23b929e0a3767a2fa6d192c311283c4508f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
#!/bin/sh -e
./configure \
--prefix=/usr \
--syslibdir=/usr/lib
make
make DESTDIR="$1" install
mkdir -p "$1/usr/bin"
ln -s /usr/lib/ld-musl-i686.so.1 "$1/usr/bin/ldd"
# Install BSD compatibility headers.
install -Dm 755 cdefs.h "$1/usr/include/sys/cdefs.h"
install -Dm 755 queue.h "$1/usr/include/sys/queue.h"
install -Dm 755 tree.h "$1/usr/include/sys/tree.h"
# Install getconf.
cc getconf.c -o "$1/usr/bin/getconf"
|