35 lines
1.3 KiB
Bash
35 lines
1.3 KiB
Bash
# Template file for 'cbang'
|
|
pkgname=cbang
|
|
version=1.3.3
|
|
revision=1
|
|
build_style=scons
|
|
make_build_args="prefix=/usr sharedlib=1 staticlib=1"
|
|
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"
|
|
checksum=05099fa47d83aa3012b4f8e0b3d69d334aa21a43dd6750f8e306832a9245b814
|
|
nocross="Cannot cross build with scons"
|
|
|
|
do_install() {
|
|
scons ${make_install_args} prefix=${DESTDIR}/usr install
|
|
# 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"
|
|
}
|
|
}
|