mirror of
https://github.com/yann64/haikuports.git
synced 2026-05-05 14:38:51 +02:00
66 lines
1.7 KiB
Bash
66 lines
1.7 KiB
Bash
SUMMARY="Decompression library for RAR, TAR, ZIP and 7z archives"
|
|
DESCRIPTION="unarr originated as a port of the RAR extraction features from \
|
|
The Unarchiver project required for extracting images from comic \
|
|
book archives (.cbr). It was written as an alternative to \
|
|
libarchive which didn't have support for parsing filters or solid \
|
|
compression at the time."
|
|
HOMEPAGE="https://github.com/sumatrapdfreader/sumatrapdf/tree/master/ext/unarr"
|
|
COPYRIGHT="The Unarchiver project (https://code.google.com/p/theunarchiver/) \
|
|
Simon Bünzli (zeniko at gmail.com, http://www.zeniko.ch/#SumatraPDF)"
|
|
LICENSE="GNU LGPL v3"
|
|
REVISION="2"
|
|
SOURCE_URI="http://download.opensuse.org/repositories/home:/selmf/xUbuntu_16.04/libunarr_1.0~r188.c4136ab.orig.tar.xz"
|
|
CHECKSUM_SHA256="d799a8f61e2c87c5fb52f01770b11eaaff1e3cb5840ab6852056d15967f664cb"
|
|
SOURCE_DIR="libunarr"
|
|
|
|
ARCHITECTURES="!x86_gcc2 x86 x86_64"
|
|
SECONDARY_ARCHITECTURES="x86"
|
|
|
|
PROVIDES="
|
|
unarr$secondaryArchSuffix = $portVersion
|
|
cmd:unarr$secondaryArchSuffix = $portVersion
|
|
lib:libunarr$secondaryArchSuffix = $portVersion
|
|
"
|
|
REQUIRES="
|
|
haiku$secondaryArchSuffix
|
|
"
|
|
|
|
PROVIDES_devel="
|
|
unarr${secondaryArchSuffix}_devel = $portVersion
|
|
devel:libunarr$secondaryArchSuffix = $portVersion
|
|
"
|
|
REQUIRES_devel="
|
|
unarr$secondaryArchSuffix == $portVersion base
|
|
"
|
|
|
|
BUILD_REQUIRES="
|
|
haiku${secondaryArchSuffix}_devel
|
|
"
|
|
BUILD_PREREQUIRES="
|
|
cmd:gcc$secondaryArchSuffix
|
|
cmd:ld$secondaryArchSuffix
|
|
cmd:make
|
|
"
|
|
|
|
PATCH()
|
|
{
|
|
sed -e s/-lm//g -i Makefile
|
|
}
|
|
|
|
BUILD()
|
|
{
|
|
make $jobArgs
|
|
}
|
|
|
|
INSTALL()
|
|
{
|
|
mkdir -p $binDir $libDir $includeDir
|
|
cp build/debug/unarr-test $binDir/unarr
|
|
cp build/debug/libunarr.a $libDir/libunarr.a
|
|
cp unarr.h $includeDir/unarr.h
|
|
|
|
prepareInstalledDevelLib libunarr
|
|
packageEntries devel \
|
|
$developDir
|
|
}
|