mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-29 11:38:52 +02:00
lrzip, bump to version 0.651 (#13920)
This commit is contained in:
94
app-arch/lrzip/lrzip-0.651.recipe
Normal file
94
app-arch/lrzip/lrzip-0.651.recipe
Normal file
@@ -0,0 +1,94 @@
|
||||
SUMMARY="Long Range ZIP or Lzma RZIP optimized for compressing large files"
|
||||
DESCRIPTION="A compression utility that excels at compressing large files \
|
||||
(usually > 10-50 MB). Larger files and/or more free RAM means that the utility \
|
||||
will be able to more effectively compress your files \
|
||||
(ie: faster / smaller size), especially if the filesize(s) exceed 100 MB. \
|
||||
You can either choose to optimise for speed (fast compression / decompression) \
|
||||
or size, but not both."
|
||||
HOMEPAGE="http://lrzip.kolivas.org/"
|
||||
COPYRIGHT="2016-2022 lrzip Authors"
|
||||
LICENSE="GNU GPL v2"
|
||||
REVISION="1"
|
||||
SOURCE_URI="https://github.com/ckolivas/lrzip/archive/refs/tags/v$portVersion.tar.gz"
|
||||
CHECKSUM_SHA256="f4c84de778a059123040681fd47c17565fcc4fec0ccc68fcf32d97fad16cd892"
|
||||
SOURCE_FILENAME="lrzip-v$portVersion.tar.gz"
|
||||
PATCHES="lrzip-$portVersion.patchset
|
||||
CVE-2022-33067.patch
|
||||
CVE-2023-39741.patch"
|
||||
|
||||
ARCHITECTURES="all !x86_gcc2"
|
||||
SECONDARY_ARCHITECTURES="x86"
|
||||
|
||||
commandBinDir=$binDir
|
||||
commandSuffix=$secondaryArchSuffix
|
||||
if [ "$targetArchitecture" = x86_gcc2 ]; then
|
||||
commandSuffix=
|
||||
commandBinDir=$prefix/bin
|
||||
fi
|
||||
|
||||
USER_SETTINGS_FILES="
|
||||
settings/lrzip.conf template $relativeDocDir/lrzip.conf.example
|
||||
"
|
||||
|
||||
PROVIDES="
|
||||
lrzip$secondaryArchSuffix = $portVersion
|
||||
cmd:lrunzip$commandSuffix = $portVersion
|
||||
cmd:lrz$commandSuffix = $portVersion
|
||||
cmd:lrzcat$commandSuffix = $portVersion
|
||||
cmd:lrzip$commandSuffix = $portVersion
|
||||
cmd:lrztar$commandSuffix = $portVersion
|
||||
cmd:lrzuntar$commandSuffix = $portVersion
|
||||
"
|
||||
REQUIRES="
|
||||
haiku$secondaryArchSuffix
|
||||
lib:libbz2$secondaryArchSuffix
|
||||
lib:liblz4$secondaryArchSuffix
|
||||
lib:liblzo2$secondaryArchSuffix
|
||||
lib:libz$secondaryArchSuffix
|
||||
"
|
||||
|
||||
BUILD_REQUIRES="
|
||||
haiku${secondaryArchSuffix}_devel
|
||||
devel:libbz2$secondaryArchSuffix
|
||||
devel:liblz4$secondaryArchSuffix
|
||||
devel:liblzo2$secondaryArchSuffix
|
||||
devel:libz$secondaryArchSuffix
|
||||
"
|
||||
BUILD_PREREQUIRES="
|
||||
cmd:aclocal
|
||||
cmd:autoreconf
|
||||
cmd:awk
|
||||
cmd:cmp
|
||||
cmd:doxygen
|
||||
cmd:find
|
||||
cmd:g++$secondaryArchSuffix
|
||||
cmd:gcc$secondaryArchSuffix
|
||||
cmd:libtoolize$secondaryArchSuffix
|
||||
cmd:make
|
||||
cmd:pod2man
|
||||
"
|
||||
|
||||
defineDebugInfoPackage lrzip$secondaryArchSuffix \
|
||||
"$commandBinDir"/lrzip
|
||||
|
||||
BUILD()
|
||||
{
|
||||
autoreconf -fi
|
||||
runConfigure --omit-dirs "binDir docDir" ./configure \
|
||||
--bindir="$commandBinDir" \
|
||||
--docdir="$developDocDir" \
|
||||
--disable-static
|
||||
make $jobArgs
|
||||
}
|
||||
|
||||
INSTALL()
|
||||
{
|
||||
make install
|
||||
|
||||
install -d -m 755 "$docDir"
|
||||
|
||||
# There's no need for another version of GPL v2
|
||||
rm "$developDocDir"/COPYING
|
||||
|
||||
mv -t "$docDir" "$developDocDir"/{AUTHORS,lrzip.conf.example,README.md}
|
||||
}
|
||||
Reference in New Issue
Block a user