zpaq: new recipe (#5563)

This commit is contained in:
Thomas Sirack
2021-01-04 03:25:47 -07:00
committed by GitHub
parent 319f7a99d7
commit 7dae0a5463
2 changed files with 117 additions and 0 deletions

View File

@@ -0,0 +1,57 @@
The following applies to the files zpaq.cpp, libzpaq.h, libzpaq.cpp,
zpaq.pod, Makefile, and readme, and any files derived thereof,
except for the portion of libzpaq.cpp identified as divsufsort.c
for libdivsufsort-lite.
This is free and unencumbered software released into the public domain.
Anyone is free to copy, modify, publish, use, compile, sell, or
distribute this software, either in source code form or as a compiled
binary, for any purpose, commercial or non-commercial, and by any
means.
In jurisdictions that recognize copyright laws, the author or authors
of this software dedicate any and all copyright interest in the
software to the public domain. We make this dedication for the benefit
of the public at large and to the detriment of our heirs and
successors. We intend this dedication to be an overt act of
relinquishment in perpetuity of all present and future rights to this
software under copyright law.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR
OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
OTHER DEALINGS IN THE SOFTWARE.
For more information, please refer to <http://unlicense.org>
---------------------------------------------------------------------
The following applies to the section of libzpaq.cpp labeled
as divsufsort.c for libdivsufsort-lite.
Copyright (c) 2003-2008 Yuta Mori All Rights Reserved.
Permission is hereby granted, free of charge, to any person
obtaining a copy of this software and associated documentation
files (the "Software"), to deal in the Software without
restriction, including without limitation the rights to use,
copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the
Software is furnished to do so, subject to the following
conditions:
The above copyright notice and this permission notice shall be
included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
OTHER DEALINGS IN THE SOFTWARE.

View File

@@ -0,0 +1,60 @@
SUMMARY="Incremental journaling archiver with powerful compression"
DESCRIPTION="zpaq is a free and open source incremental, \
journaling command-line archiver. Among its features include \
up to four billion files and 250 terabytes of data before compression,\
encrypted archives via AES, multi-part/split archives,\
and powerful compression through multiple methods.\
\
zpaq is only intended for user-level backups. It should not be used to \
archive the operating system, as it does not follow links or save special \
files such as devices, sockets, or pipes."
HOMEPAGE="http://mattmahoney.net/dc/zpaq.html"
COPYRIGHT="2009-2016 Matt Mahoney"
LICENSE="Public Domain
zpaq"
REVISION="1"
SOURCE_URI="http://mattmahoney.net/dc/zpaq715.zip"
CHECKSUM_SHA256="e85ec2529eb0ba22ceaeabd461e55357ef099b80f61c14f377b429ea3d49d418"
SOURCE_DIR=""
ARCHITECTURES="!x86_gcc2 x86 x86_64"
SECONDARY_ARCHITECTURES="x86"
PROVIDES="
zpaq$secondaryArchSuffix = $portVersion
cmd:zpaq$secondaryArchSuffix = $portVersion
"
REQUIRES="
haiku$secondaryArchSuffix
"
BUILD_REQUIRES="
haiku${secondaryArchSuffix}_devel
"
BUILD_PREREQUIRES="
cmd:cmp
cmd:g++$secondaryArchSuffix
cmd:make
cmd:pod2man
cmd:unzip
"
PATCH()
{
sed -i "s/-pthread/-lpthread/g" Makefile
}
BUILD()
{
make CXX=g++$secondaryArchSuffix $jobArgs
}
INSTALL()
{
make BINDIR=$binDir MANDIR=$manDir install
}
TEST()
{
make check
}