unarr : bump, cleanup, debug (#2044)

This commit is contained in:
miqlas
2018-01-04 00:07:05 +01:00
committed by fbrosson
parent 778a4c68a4
commit 1a34b15e75

View File

@@ -5,12 +5,14 @@ book archives (.cbr). It was written as an alternative to \
libarchive which didn't have support for parsing filters or solid \ libarchive which didn't have support for parsing filters or solid \
compression at the time." compression at the time."
HOMEPAGE="https://github.com/sumatrapdfreader/sumatrapdf/tree/master/ext/unarr" HOMEPAGE="https://github.com/sumatrapdfreader/sumatrapdf/tree/master/ext/unarr"
COPYRIGHT="The Unarchiver project (https://code.google.com/p/theunarchiver/) \ COPYRIGHT="The Unarchiver project
Simon Bünzli (zeniko at gmail.com, http://www.zeniko.ch/#SumatraPDF)" Simon Bünzli
Felix Kauselmann
Bastien Nocera"
LICENSE="GNU LGPL v3" LICENSE="GNU LGPL v3"
REVISION="3" REVISION="1"
SOURCE_URI="https://github.com/selmf/unarr/archive/v${portVersion}.tar.gz" SOURCE_URI="https://github.com/selmf/unarr/archive/v${portVersion}.tar.gz"
CHECKSUM_SHA256="ef1610d636641751ca234da7998b3f6b53313c7e526492a6070dd572b99d4685" CHECKSUM_SHA256="0098e3f33182d16c13eb21278696651b170360a9a4d1c0214db4bd7882253223"
ARCHITECTURES="!x86_gcc2 x86 x86_64" ARCHITECTURES="!x86_gcc2 x86 x86_64"
SECONDARY_ARCHITECTURES="x86" SECONDARY_ARCHITECTURES="x86"
@@ -48,6 +50,9 @@ BUILD_PREREQUIRES="
cmd:pkg_config$secondaryArchSuffix cmd:pkg_config$secondaryArchSuffix
" "
defineDebugInfoPackage unarr$secondaryArchSuffix \
$libDir/libunarr.so.1.0.0
PATCH() PATCH()
{ {
# fix a small typo in pkg-config.pc.cmake, fixed since in master branch, but not in latest release yet # fix a small typo in pkg-config.pc.cmake, fixed since in master branch, but not in latest release yet
@@ -57,7 +62,6 @@ PATCH()
BUILD() BUILD()
{ {
rm -rf build
mkdir -p build mkdir -p build
cd build cd build
@@ -65,20 +69,14 @@ BUILD()
cmake .. \ cmake .. \
-DCMAKE_BUILD_TYPE:STRING="Release" \ -DCMAKE_BUILD_TYPE:STRING="Release" \
-DBUILD_SHARED_LIBS=OFF \ -DBUILD_SHARED_LIBS=OFF \
-DCMAKE_INSTALL_PREFIX:PATH=$prefix \ $cmakeDirArgs
-DCMAKE_INSTALL_BINDIR:PATH=$relativeBinDir \
-DCMAKE_INSTALL_LIBDIR:PATH=$relativeDevelopLibDir \
-DCMAKE_INSTALL_INCLUDEDIR:PATH=$relativeIncludeDir
make $jobArgs make $jobArgs
# build shared library too # build shared library too
cmake .. \ cmake .. \
-DCMAKE_BUILD_TYPE:STRING="Release" \ -DCMAKE_BUILD_TYPE:STRING="Release" \
-DBUILD_SHARED_LIBS=ON \ -DBUILD_SHARED_LIBS=ON \
-DCMAKE_INSTALL_PREFIX:PATH=$prefix \ $cmakeDirArgs
-DCMAKE_INSTALL_BINDIR:PATH=$relativeBinDir \
-DCMAKE_INSTALL_LIBDIR:PATH=$relativeDevelopLibDir \
-DCMAKE_INSTALL_INCLUDEDIR:PATH=$relativeIncludeDir
make $jobArgs make $jobArgs
} }