2020-04-06 06:45:32 +00:00
|
|
|
# Template file for 'cbang'
|
|
|
|
pkgname=cbang
|
2020-06-30 18:31:39 +00:00
|
|
|
version=1.5.1
|
2020-07-02 22:16:39 +00:00
|
|
|
revision=2
|
2020-04-06 06:45:32 +00:00
|
|
|
build_style=scons
|
2020-05-17 16:23:22 +00:00
|
|
|
make_build_args="sharedlib=1 staticlib=1"
|
2020-04-06 06:45:32 +00:00
|
|
|
make_install_args="${make_build_args}"
|
|
|
|
hostmakedepends="pkg-config"
|
|
|
|
makedepends="boost-devel bzip2-devel expat-devel leveldb-devel libevent-devel
|
|
|
|
libressl-devel libyaml-devel re2-devel snappy-devel sqlite-devel zlib-devel"
|
|
|
|
short_desc="C! (a.k.a. C-Bang) collection of C++ utility libraries"
|
|
|
|
maintainer="Jürgen Buchmüller <pullmoll@t-online.de>"
|
|
|
|
license="LGPL-2.1-only"
|
|
|
|
homepage="https://github.com/CauldronDevelopmentLLC/cbang"
|
|
|
|
distfiles="https://github.com/CauldronDevelopmentLLC/cbang/archive/${version}.tar.gz>${pkgname}-${version}.tar.gz"
|
2020-06-30 18:31:39 +00:00
|
|
|
checksum=cff5e9e9280512c49439643465dec9e84f84debaa02fe2473e51b37f6fa50846
|
2020-04-06 06:45:32 +00:00
|
|
|
|
2020-05-17 16:23:22 +00:00
|
|
|
pre_build() {
|
|
|
|
make_build_args+=" prefix=$DESTDIR/usr"
|
|
|
|
}
|
|
|
|
|
2020-06-03 01:40:46 +00:00
|
|
|
do_check() {
|
|
|
|
cd tests
|
|
|
|
touch iostreamTests/{C,Dec}ompressTest/disable
|
|
|
|
scons ${makejobs} CC=$CC CXX=$CXX CCFLAGS="$CFLAGS" \
|
|
|
|
cc=$CC cxx=$CXX ccflags="$CFLAGS" \
|
|
|
|
CXXFLAGS="$CXXFLAGS" LINKFLAGS="$LDFLAGS" \
|
|
|
|
cxxflags="$CXXFLAGS" linkflags="$LDFLAGS" \
|
|
|
|
RANLIB="$RANLIB" ranlib="$RANLIB" \
|
|
|
|
prefix=/usr destdir=${DESTDIR} DESTDIR=${DESTDIR}
|
|
|
|
./testHarness
|
|
|
|
}
|
|
|
|
|
2020-05-17 16:23:22 +00:00
|
|
|
pre_install() {
|
|
|
|
make_install_args+=" prefix=$DESTDIR/usr"
|
|
|
|
}
|
|
|
|
|
|
|
|
post_install() {
|
2020-04-06 06:45:32 +00:00
|
|
|
# Create missing symbolic links for the shared library
|
|
|
|
ln -sf libcbang0.so.0.0.1 ${DESTDIR}/usr/lib/libcbang.so.0.0
|
|
|
|
ln -sf libcbang0.so.0.0.1 ${DESTDIR}/usr/lib/libcbang.so.0
|
|
|
|
ln -sf libcbang0.so.0.0.1 ${DESTDIR}/usr/lib/libcbang.so
|
|
|
|
}
|
|
|
|
|
|
|
|
cbang-devel_package() {
|
|
|
|
short_desc+=" - development files"
|
|
|
|
depends="${sourcepkg}>=${version_revision} ${makedepends}"
|
|
|
|
pkg_install() {
|
|
|
|
vmove usr/include
|
|
|
|
vmove "usr/lib/*.a"
|
|
|
|
vmove "usr/lib/*.so"
|
|
|
|
}
|
|
|
|
}
|