# Maintainer: Natanael Copa pkgname=xz pkgver=5.2.0 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 rm "$pkgdir"/usr/lib/*.la } libs() { pkgdesc="Libraries for decoding LZMA compression" mkdir -p "$subpkgdir"/usr/lib mv "$pkgdir"/usr/lib/lib*.so.* "$subpkgdir"/usr/lib/ } md5sums="be585bdf8672e4406632eda3d819e284 xz-5.2.0.tar.gz" sha256sums="231ef369982240bb20ed7cffa52bb12a4a297ce6871f480ab85e8a7ba98bf3d6 xz-5.2.0.tar.gz" sha512sums="dc272d4f8d437bfe22ed75355fcd647018a2514e4b011552c913074c0ae7d306ae2a20f3227895ea8123918088d826b2c5595dc15ba6ba2d8062e780d8707a28 xz-5.2.0.tar.gz"