2019-06-23 17:56:31 +00:00
|
|
|
#!/bin/sh -e
|
|
|
|
|
|
|
|
./configure \
|
2019-06-23 18:57:15 +00:00
|
|
|
--prefix=/usr \
|
|
|
|
--without-xml2 \
|
|
|
|
--disable-rpath
|
2019-06-23 17:56:31 +00:00
|
|
|
|
|
|
|
make
|
2019-06-24 03:42:05 +00: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 17:56:31 +00:00
|
|
|
make DESTDIR="$1" install
|
2019-06-23 18:15:51 +00:00
|
|
|
|
2019-06-24 03:36:39 +00:00
|
|
|
ln -s bsdtar "$1/usr/bin/tar"
|