2019-06-23 11:56:31 -06:00
|
|
|
#!/bin/sh -e
|
|
|
|
|
|
|
|
./configure \
|
2019-06-23 12:57:15 -06:00
|
|
|
--prefix=/usr \
|
|
|
|
--without-xml2 \
|
|
|
|
--disable-rpath
|
2019-06-23 11:56:31 -06:00
|
|
|
|
|
|
|
make
|
2019-06-23 21:42:05 -06:00
|
|
|
|
|
|
|
# Since --enable-bsdtar=static doesn't work, link it manually
|
|
|
|
ld -static -o bsdtar tar/bsdtar-bsdtar.o tar/bsdtar-cmdline.o \
|
|
|
|
tar/bsdtar-creation_set.o tar/bsdtar-read.o tar/bsdtar-subst.o \
|
|
|
|
tar/bsdtar-util.o tar/bsdtar-write.o /usr/lib/crt1.o \
|
|
|
|
.libs/libarchive.a .libs/libarchive_fe.a /usr/lib/libz.a \
|
|
|
|
/usr/lib/libcrypto.a /usr/lib/liblzma.a /usr/lib/libc.a
|
|
|
|
|
2019-06-23 11:56:31 -06:00
|
|
|
make DESTDIR="$1" install
|
2019-06-23 12:15:51 -06:00
|
|
|
|
2019-06-23 21:36:39 -06:00
|
|
|
ln -s bsdtar "$1/usr/bin/tar"
|