mirror of
https://codeberg.org/kiss-community/repo
synced 2024-12-25 16:50:07 -07:00
20 lines
531 B
Bash
Executable File
20 lines
531 B
Bash
Executable File
#!/bin/sh -e
|
|
|
|
./configure \
|
|
--prefix=/usr \
|
|
--without-xml2 \
|
|
--disable-rpath
|
|
|
|
make
|
|
|
|
# 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
|
|
|
|
make DESTDIR="$1" install
|
|
|
|
ln -s bsdtar "$1/usr/bin/tar"
|