# Description: Utilitaire pour extraire/comprimer les fichiers lzma
# URL: http://tukaani.org/lz/
# Maintainer: NuTyX core team
# Packager: thierryn1 at hispeed dot ch
# Depends on: 

name=xz-utils
version=4.999.9beta
release=1
source=(http://tukaani.org/xz/xz-$version.tar.gz)

build() {
        cd xz-$version
        ./configure --prefix=/usr \
		--disable-static \
		--disable-rpath \
                --sysconfdir=/etc \
                --mandir=/usr/share/man
	sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool
	sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool
        make
        make DESTDIR=$PKG install
}