void-packages/srcpkgs/libsigc++/template

35 lines
977 B
Bash

# Template file for 'libsigc++'
pkgname=libsigc++
version=2.12.0
revision=1
build_style=meson
configure_args="-Dbuild-examples=false -Dwarnings=max"
meson_builddir="meson_build"
short_desc="Type-safe callback system for C++ programs"
maintainer="Enno Boland <gottox@voidlinux.org>"
license="LGPL-2.1-or-later"
homepage="https://libsigcplusplus.github.io/libsigcplusplus/"
distfiles="${GNOME_SITE}/libsigc++/${version%.*}/libsigc++-${version}.tar.xz"
checksum=1c466d2e64b34f9b118976eb21b138c37ed124d0f61497df2a90ce6c3d9fa3b5
if [ -z "$XBPS_CHECK_PKGS" ]; then
configure_args+=" -Dbuild-tests=false"
fi
pre_configure() {
# build static library as well as shared
vsed -i 's,library(,both_libraries(,' sigc++/meson.build
}
libsigc++-devel_package() {
depends="${sourcepkg}>=${version}_${revision}"
short_desc+=" - development files"
pkg_install() {
vmove usr/include
vmove usr/lib/pkgconfig
vmove usr/lib/sigc++-2.0
vmove "usr/lib/*.a"
vmove "usr/lib/*.so"
}
}