unarr, recipe based on myqlas PR 491 (#774)

This commit is contained in:
Schrijvers Luc
2016-08-20 15:24:18 +02:00
committed by waddlesplash
parent 12422e2639
commit 8fafd998bc

View File

@@ -0,0 +1,65 @@
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="1"
SOURCE_URI="http://download.opensuse.org/repositories/home:/selmf/xUbuntu_15.10/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
}