Files
haikuports/dev-libs/libtar/libtar-1.2.20.recipe
2023-03-30 09:31:06 +02:00

78 lines
1.8 KiB
Bash

SUMMARY="A C library for manipulating tar files"
DESCRIPTION="libtar is a library for manipulating tar files from within C \
programs. Here are some of its features:
- Handles both POSIX tar file format and the GNU extensions.
- API provides functions for easy use, such as tar_extract_all().
- Also provides functions for more granular use, such as \
tar_append_regfile()."
HOMEPAGE="https://repo.or.cz/w/libtar.git/"
COPYRIGHT="
1998-2003 University of Illinois Board of Trustees
1998-2003 Mark D. Roth
"
LICENSE="BSD (3-clause)"
REVISION="6"
gitCommit="9c2e044833c5e908f5be0a77991b08849021793e"
SOURCE_URI="https://github.com/tklauser/libtar/archive/$gitCommit.tar.gz"
CHECKSUM_SHA256="21d86460dd128f56cfa391e4bc82e91f98e84c2948a854e33daed5c58d4e9cb6"
SOURCE_FILENAME="libtar-$portVersion-$gitCommit.tar.gz"
SOURCE_DIR="libtar-$gitCommit"
PATCHES="libtar-$portVersion.patchset"
ARCHITECTURES="all"
SECONDARY_ARCHITECTURES="x86"
PROVIDES="
libtar${secondaryArchSuffix} = $portVersion
cmd:libtar
lib:libtar${secondaryArchSuffix} = 0.0.0 compat >= 0
"
REQUIRES="
haiku${secondaryArchSuffix}
"
PROVIDES_devel="
libtar${secondaryArchSuffix}_devel = $portVersion
devel:libtar$secondaryArchSuffix = 0.0.0
"
REQUIRES_devel="
libtar$secondaryArchSuffix == $portVersion base
"
BUILD_REQUIRES="
haiku${secondaryArchSuffix}_devel
"
BUILD_PREREQUIRES="
cmd:aclocal
cmd:autoconf
cmd:autoheader
cmd:automake
cmd:gcc$secondaryArchSuffix
cmd:ld$secondaryArchSuffix
cmd:libtoolize$secondaryArchSuffix
cmd:make
"
BUILD()
{
autoreconf -fi
runConfigure ./configure --disable-static
make $jobArgs
}
INSTALL()
{
make install
rm $libDir/libtar.la
prepareInstalledDevelLibs libtar
fixPkgconfig
# devel package
packageEntries devel \
$developDir \
$manDir
}