36 lines
1.1 KiB
Bash
36 lines
1.1 KiB
Bash
# Template file for 'libsigc++'
|
|
pkgname=libsigc++
|
|
version=2.12.1
|
|
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/"
|
|
changelog="https://raw.githubusercontent.com/libsigcplusplus/libsigcplusplus/libsigc%2B%2B-2-12/NEWS"
|
|
distfiles="${GNOME_SITE}/libsigc++/${version%.*}/libsigc++-${version}.tar.xz"
|
|
checksum=a9dbee323351d109b7aee074a9cb89ca3e7bcf8ad8edef1851f4cf359bd50843
|
|
|
|
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"
|
|
}
|
|
}
|