-
Notifications
You must be signed in to change notification settings - Fork 2.1k
/
template
35 lines (32 loc) · 1.05 KB
/
template
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
# 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"
}
}