mirror of
https://github.com/void-linux/void-packages.git
synced 2025-04-16 14:17:02 +02:00
cbang: rebuild for correct prefix
This commit is contained in:
parent
3936763f57
commit
dedfc79c27
1 changed files with 11 additions and 17 deletions
|
@ -1,13 +1,14 @@
|
|||
# Template file for 'cbang'
|
||||
pkgname=cbang
|
||||
version=1.6.0
|
||||
revision=3
|
||||
revision=4
|
||||
build_style=scons
|
||||
make_build_args="sharedlib=1 staticlib=1"
|
||||
make_install_args="${make_build_args}"
|
||||
hostmakedepends="pkg-config"
|
||||
makedepends="boost-devel bzip2-devel expat-devel leveldb-devel libevent-devel
|
||||
openssl-devel libyaml-devel re2-devel snappy-devel sqlite-devel zlib-devel"
|
||||
checkdepends="python"
|
||||
short_desc="C! (a.k.a. C-Bang) collection of C++ utility libraries"
|
||||
maintainer="Orphaned <orphan@voidlinux.org>"
|
||||
license="LGPL-2.1-only"
|
||||
|
@ -15,31 +16,24 @@ homepage="https://github.com/CauldronDevelopmentLLC/cbang"
|
|||
distfiles="https://github.com/CauldronDevelopmentLLC/cbang/archive/${version}.tar.gz>${pkgname}-${version}.tar.gz"
|
||||
checksum=8aa5efacf419b712b5bd0172c9d56301bdcbd477cb590ceec25c3595a192e9c0
|
||||
|
||||
pre_build() {
|
||||
make_build_args+=" prefix=$DESTDIR/usr"
|
||||
post_extract() {
|
||||
touch tests/iostreamTests/{C,Dec}ompressTest/disable
|
||||
}
|
||||
|
||||
post_build() {
|
||||
cd tests
|
||||
do_build
|
||||
}
|
||||
|
||||
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
|
||||
}
|
||||
|
||||
pre_install() {
|
||||
make_install_args+=" prefix=$DESTDIR/usr"
|
||||
}
|
||||
|
||||
post_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
|
||||
ln -sf libcbang0.so.* ${DESTDIR}/usr/lib/libcbang0.so
|
||||
ln -sf libcbang0.so.* ${DESTDIR}/usr/lib/libcbang.so
|
||||
}
|
||||
|
||||
cbang-devel_package() {
|
||||
|
|
Loading…
Add table
Reference in a new issue