1 # Description: Library to create and read several archive formats
2 # URL: http://people.freebsd.org/~kientzle/libarchive/
3 # Maintainer: CRUX System Team, core-ports at crux dot nu
4 # Arch Maintainer: CRUX-ARM System Team, devel at crux-arm dot nu
5 # Depends on: bzip2 xz zlib acl
10 source=(http://www.libarchive.org/downloads/$name-$version.tar.gz)
14 # We're passing --without-lzmadec, because we want to use xz for
15 # LZMA support, not the obsolete lzmadec library.
17 # We're passing --without-xml2 and --without-expat to avoid linking
18 # to libraries which are only available in opt. XML support is only
19 # needed for the xar format which we can live without.
21 # Fix libtool linking with host forcing our library path
22 sed -e "s|-rpath \$(libdir)|-rpath $CLFS/usr/lib|g" \
23 -e "s|\$(libarchive_la_LIBADD) \$(LIBS)|-L$CLFS/usr/lib|g" -i Makefile.in
25 ./configure --build=$CHOST \
33 # Forcing libtool to prioritize our sysroot
34 sed "s|lt_sysroot=|lt_sysroot=$CLFS|g" -i libtool
37 make DESTDIR=$PKG install