# Maintainer: Natanael Copa pkgname=xz pkgver=5.0.7 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="60449e1c9c0eabefc9c3166e325636e5 xz-5.0.7.tar.gz" sha256sums="f4d2165553b9d0d82fd08bc2eacddeb48ebeb862a5686a603f8c044a2e52c93f xz-5.0.7.tar.gz" sha512sums="dc2716c2a5d8c8cec0e7034c5dbb8d745196f4e6c8344d5ff164e20fc284d703a93a75d8a062215a2c613f19152d6b996807baf5b7c0e7ff20a5b865d6466ed8 xz-5.0.7.tar.gz"