diff options
| author | Mitch Riedstra <mitch@riedstra.us> | 2018-04-22 16:26:22 -0400 |
|---|---|---|
| committer | Mitch Riedstra <mitch@riedstra.us> | 2018-04-22 16:26:22 -0400 |
| commit | b3810b12552a937dcb6486ccf775a0bd9094db23 (patch) | |
| tree | 27826276babd4f9b6ca778250fbe41064bb3f139 /scripts/libarchive.sh | |
| parent | c2b6f4cdd5383108a923cf4dac133ac62bcbfe1d (diff) | |
| download | min-b3810b12552a937dcb6486ccf775a0bd9094db23.tar.gz min-b3810b12552a937dcb6486ccf775a0bd9094db23.tar.xz | |
Added libarchive
Moved syslinux config file
still messing with packaging
Diffstat (limited to 'scripts/libarchive.sh')
| -rw-r--r-- | scripts/libarchive.sh | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/scripts/libarchive.sh b/scripts/libarchive.sh new file mode 100644 index 0000000..6311950 --- /dev/null +++ b/scripts/libarchive.sh @@ -0,0 +1,27 @@ +#!/bin/sh +. ./.vars +VERSION=3.3.2 +APP_NAME="libarchive" +BUILD_DIR="${build_dir}/$APP_NAME-$VERSION" +if ! [ -d "$BUILD_DIR" ] ; then + cd "$build_dir" + tar xfzv ${dist_dir}/$APP_NAME-$VERSION.tar.gz +fi +cd "$BUILD_DIR" +export CC=$BUILD_TGT-gcc +export CFLAGS="-I$prefix/usr/include -static" +export DESTDIR=$prefix +export LDFLAGS="-L$prefix/usr/lib/ -static" +rm config.log || echo "" +make clean || echo "" +./configure \ + --host=$BUILD_TGT \ + --prefix=/usr \ + --without-xml2 \ + --enable-bsdtar=static \ + --enable-bsdcpio=static \ + --enable-bsdcat=static \ + --without-openssl \ + --with-sysroot=$prefix +make -j$(nproc) +make install |
