# Tanım: Farklı arşiv tiplerini uygulayan kütüphane
# URL: http://people.freebsd.org/~kientzle/libarchive
# Paketçi: milisarge
# Gerekler: musl
# Grup: sistem

isim=libarchive-static
surum=3.3.3
devir=1

kaynak=(http://www.libarchive.org/downloads/libarchive-$surum.tar.gz)

derle() {
	cd libarchive-$surum
	CC="musl-gcc" ./configure LDFLAGS='--static' \
	--prefix="/usr" \
	--enable-bsdtar=static \
	--disable-shared \
	--without-xml2 \
	--without-nettle
	make
	make DESTDIR=$PKG install
	rm -rf $PKG/usr/lib
	rm -rf $PKG/usr/include
	rm -rf $PKG/usr/share
	mv $PKG/usr/bin/bsdtar $PKG/usr/bin/bsdtar-static
	mv $PKG/usr/bin/bsdcat $PKG/usr/bin/bsdcat-static
	mv $PKG/usr/bin/bsdcpio $PKG/usr/bin/bsdcpio-static
}
