mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-08-05 13:27:09 +02:00
45 lines
1.1 KiB
Plaintext
45 lines
1.1 KiB
Plaintext
# Contributor: Sören Tempel <soeren+alpine@soeren-tempel.net>
|
|
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
|
|
pkgname=xz
|
|
pkgver=5.2.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 Public-Domain"
|
|
subpackages="$pkgname-dev $pkgname-doc $pkgname-libs"
|
|
source="https://tukaani.org/xz/$pkgname-$pkgver.tar.xz"
|
|
|
|
build() {
|
|
cd "$builddir"
|
|
./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() {
|
|
cd "$builddir"
|
|
LD_LIBRARY_PATH="$(pwd)/src/liblzma/.libs" make check
|
|
}
|
|
|
|
package() {
|
|
cd "$builddir"
|
|
make DESTDIR="$pkgdir" install
|
|
}
|
|
|
|
sha512sums="00db7dd31a61541b1ce6946e0f21106f418dd1ac3f27cdb8682979cbc3bd777cd6dd1f04f9ba257a0a7e24041e15ca40d0dd5c130380dce62280af67a0beb97f xz-5.2.4.tar.xz"
|