mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-22 03:30:05 +02:00
libbase58: new recipe (#1822)
This commit is contained in:
68
dev-libs/libbase58/libbase58-0.1.4.recipe
Normal file
68
dev-libs/libbase58/libbase58-0.1.4.recipe
Normal file
@@ -0,0 +1,68 @@
|
||||
SUMMARY="A library for encoding/decoding base58"
|
||||
DESCRIPTION="libbase58 provides encoding and decoding for the base58 format, \
|
||||
used in Bitcoin addresses."
|
||||
HOMEPAGE="https://github.com/bitcoin/libbase58"
|
||||
COPYRIGHT="2014-2017 Luke Dashjr"
|
||||
LICENSE="MIT"
|
||||
REVISION="1"
|
||||
SOURCE_URI="https://github.com/bitcoin/libbase58/archive/v$portVersion.tar.gz"
|
||||
CHECKSUM_SHA256="97e8c3387fd4ed90208a8101e658743efbb6e21714e594f0828e6414f92c0b1d"
|
||||
|
||||
ARCHITECTURES="!x86_gcc2 x86 x86_64"
|
||||
SECONDARY_ARCHITECTURES="x86"
|
||||
|
||||
libVersion=0.0.2
|
||||
libVersionCompat="$libVersion compat >= 0"
|
||||
|
||||
PROVIDES="
|
||||
libbase58$secondaryArchSuffix = $portVersion
|
||||
lib:libbase58$secondaryArchSuffix = $libVersionCompat
|
||||
"
|
||||
REQUIRES="
|
||||
haiku$secondaryArchSuffix
|
||||
"
|
||||
|
||||
PROVIDES_devel="
|
||||
libbase58${secondaryArchSuffix}_devel = $portVersion
|
||||
devel:libbase58$secondaryArchSuffix = $libVersion
|
||||
"
|
||||
REQUIRES_devel="
|
||||
libbase58$secondaryArchSuffix == $portVersion base
|
||||
"
|
||||
|
||||
BUILD_REQUIRES="
|
||||
haiku${secondaryArchSuffix}_devel
|
||||
"
|
||||
BUILD_PREREQUIRES="
|
||||
cmd:aclocal
|
||||
cmd:autoreconf
|
||||
cmd:gcc$secondaryArchSuffix
|
||||
cmd:libtoolize$secondaryArchSuffix
|
||||
cmd:make
|
||||
"
|
||||
|
||||
defineDebugInfoPackage libbase58$secondaryArchSuffix \
|
||||
$libDir/libbase58.so.$libVersion
|
||||
|
||||
BUILD()
|
||||
{
|
||||
./autogen.sh
|
||||
runConfigure ./configure
|
||||
make $jobArgs
|
||||
}
|
||||
|
||||
INSTALL()
|
||||
{
|
||||
make install
|
||||
rm -f $libDir/libbase58.la
|
||||
prepareInstalledDevelLib libbase58
|
||||
fixPkgconfig
|
||||
packageEntries devel \
|
||||
$developDir
|
||||
}
|
||||
|
||||
TEST()
|
||||
{
|
||||
# Test suite is present but currently has no tests.
|
||||
make check
|
||||
}
|
||||
Reference in New Issue
Block a user