jigit [recipe] (#3423)

* jigit [recipe]
This commit is contained in:
Bach Nguyen
2020-02-08 01:19:46 -06:00
committed by GitHub
parent a1a0dcdce5
commit b5e6cc020a

View File

@@ -0,0 +1,98 @@
SUMMARY="A user-friendly tool to ease the distribution of very large files"
DESCRIPTION="jigit aims to be a user-friendly wrapper for jigit-mkimage. \
jigit-mkimage is a simple but fast tool to reconstruct large image files from \
\".jigdo\" and \".template\" files. \
It doesn't have any logic to cope with downloading missing files, but will \
list the missing files that are needed. \
It is also convenient in case the user has a partially outdated optical media \
or ISO image containing at least some files which are not outdated."
HOMEPAGE="https://www.einval.com/~steve/software/JTE/"
COPYRIGHT="2004-2014 Steve McIntyre
2000-2010 George Danchev, Thomas Schmitt"
LICENSE="GNU GPL v2
GNU LGPL v2.1"
REVISION="1"
SOURCE_URI="$HOMEPAGE/download/jigit_$portVersion.orig.tar.gz"
CHECKSUM_SHA256="459285bd743645381912301578316f2bfafb99ce1c10140a01af2b6cb011f193"
ARCHITECTURES="!x86_gcc2 x86_64"
SECONDARY_ARCHITECTURES="x86"
commandSuffix=$secondaryArchSuffix
commandBinDir=$binDir
if [ "$targetArchitecture" = x86_gcc2 ]; then
commandSuffix=
commandBinDir=$prefix/bin
fi
PROVIDES="
jigit$secondaryArchSuffix = $portVersion
cmd:jigdump$commandSuffix = $portVersion
cmd:jigit$commandSuffix = $portVersion
cmd:jigsum$commandSuffix = $portVersion
cmd:jigit_mkimage$commandSuffix = $portVersion
cmd:mkjigsnap$commandSuffix = $portVersion
lib:libjte$secondaryArchSuffix = 1.0.0 compat >= 1
"
REQUIRES="
haiku$secondaryArchSuffix
cmd:awk
cmd:bash
cmd:wc
cmd:wget
cmd:xargs
lib:libbz2$secondaryArchSuffix
lib:libz$secondaryArchSuffix
"
PROVIDES_devel="
jigit${secondaryArchSuffix}_devel = $portVersion
devel:libjte$secondaryArchSuffix = 1.0.0 compat >= 1
"
REQUIRES_devel="
jigit$secondaryArchSuffix == $portVersion base
"
BUILD_REQUIRES="
haiku${secondaryArchSuffix}_devel
devel:libbz2$secondaryArchSuffix
devel:libz$secondaryArchSuffix
"
BUILD_PREREQUIRES="
cmd:aclocal
cmd:autoconf
cmd:awk
cmd:gcc$secondaryArchSuffix
cmd:libtoolize$secondaryArchSuffix
cmd:make
cmd:pkg_config$secondaryArchSuffix
cmd:touch
"
BUILD()
{
cd libjte
touch NEWS README AUTHORS
autoreconf -vfi
runConfigure ./configure
make $jobArgs
make -C ../
}
INSTALL()
{
install -m 755 -d "$commandBinDir" "$manDir"/man1 "$manDir"/man8
install -m 755 -t "$commandBinDir" \
jigdump jigit jigit-mkimage jigsum \
mkjigsnap
install -m 644 -t "$manDir"/man1 *.1
install -m 644 -t "$manDir"/man8 *.8
cd libjte && make install
rm -f $libDir/*.la
prepareInstalledDevelLib libjte
fixPkgconfig
packageEntries devel \
$developDir
}