1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495 |
- set -e
- program=xz
- version=5.2.5
- release=1
- pkgcategory=compressors
- tarname=${program}-${version}.tar.bz2
- fetch=https://tukaani.org/xz/$tarname
- description="
- A (complex) compression utility based on the LZMA algorithm.
- XZ Utils is free general-purpose data compression software with a high
- compression ratio. XZ Utils were written for POSIX-like systems, but
- also work on some not-so-POSIX systems.
- WARNING:
- The usage of this utility to distribute files or backup your data
- IS TOTALLY DISCOURAGED. Limit its usage to decompression only,
- since some maintainers refuse to distribute in a better format.
- For more information, see https://lzip.nongnu.org/xz_inadequate.html
- It is highly recommended the use of lzip(1) instead of xz(1).
- "
- homepage=https://tukaani.org/xz
- license=GPLv2+
- docsdir="${docdir}/${program}-${version}"
- build()
- {
- unpack "${tardir}/$tarname"
- cd "$srcdir"
-
- chmod -R u+w,go-w,a+rX-s .
- ./configure CPPFLAGS="$QICPPFLAGS" CFLAGS="$QICFLAGS" LDFLAGS="$QILDFLAGS" \
- $configure_args \
- --libdir=/usr/lib${libSuffix} \
- --mandir=$mandir \
- --docdir=$docsdir \
- --enable-static=no \
- --enable-shared=yes \
- --disable-rpath \
- --disable-lzmadec \
- --disable-lzmainfo \
- --disable-lzma-links \
- --build="$(gcc -dumpmachine)"
- make -j${jobs} V=1
- make -j${jobs} DESTDIR="$destdir" install-strip
-
- if test -d "${destdir}/$mandir"
- then
- (
- cd "${destdir}/$mandir"
- find . -type f -exec lzip -9 {} +
- find . -type l | while read -r file
- do
- ln -sf "$(readlink -- "$file").lz" "${file}.lz"
- rm -- "$file"
- done
- )
- fi
- }
|