# Maintainer: Natanael Copa pkgname=xz pkgver=5.2.1 pkgrel=0 pkgdesc="Library and command line tools for XZ and LZMA compressed files" url="http://tukaani.org/xz/" arch="all" license="GPL LGPL custom" depends="" makedepends="" subpackages="$pkgname-dev $pkgname-doc $pkgname-libs" source="http://tukaani.org/xz/xz-$pkgver.tar.gz" _builddir="$srcdir"/$pkgname-$pkgver build () { cd $srcdir/$pkgname-$pkgver ./configure \ --build=$CBUILD \ --host=$CHOST \ --prefix=/usr \ --disable-rpath \ --disable-werror \ || return 1 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 } package() { cd "$_builddir" make DESTDIR="$pkgdir" install || return 1 } libs() { pkgdesc="Libraries for decoding LZMA compression" mkdir -p "$subpkgdir"/usr/lib mv "$pkgdir"/usr/lib/lib*.so.* "$subpkgdir"/usr/lib/ } md5sums="3e44c766c3fb4f19e348e646fcd5778a xz-5.2.1.tar.gz" sha256sums="b918b6648076e74f8d7ae19db5ee663df800049e187259faf5eb997a7b974681 xz-5.2.1.tar.gz" sha512sums="61d059c51c7cdbab803d006ee47b0be116fd6ba4ba05b9234c43c8b1d8b0021b44735c1335a911a4bccb8543548563cef16dafd7d76dd8ef6c4f763fc023afc2 xz-5.2.1.tar.gz"