# Contributor: Sören Tempel # Maintainer: Natanael Copa pkgname=xz pkgver=5.4.4 pkgrel=0 pkgdesc="Library and CLI tools for XZ and LZMA compressed files" url="https://tukaani.org/xz" arch="all" license="GPL-2.0-or-later AND Public-Domain AND LGPL-2.1-or-later" depends_dev="$pkgname=$pkgver-r$pkgrel" subpackages="$pkgname-static $pkgname-dev $pkgname-doc $pkgname-libs" source="https://tukaani.org/xz/xz-$pkgver.tar.xz" # secfixes: # 5.2.5-r1: # - CVE-2022-1271 build() { # compression utility CFLAGS="$CFLAGS -O3" \ ./configure \ --build=$CBUILD \ --host=$CHOST \ --prefix=/usr \ --sysconfdir=/etc \ --mandir=/usr/share/man \ --infodir=/usr/share/info \ --localstatedir=/var \ --disable-rpath \ --disable-werror \ --disable-doc sed -i \ -e 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' \ -e 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' \ libtool make } check() { LD_LIBRARY_PATH="$(pwd)/src/liblzma/.libs" make check || { cat tests/test-suite.log return 1 } } package() { make DESTDIR="$pkgdir" install } sha512sums=" 2b233a924b82190ff15e970c5a4a59f1c53a0b39a96bde228c9dfc9b103b4a3e5888f5024da4834e180f6010620ff23caf9f7135a38724eb2c8d01bff7a9a9e1 xz-5.4.4.tar.xz "