1 # Maintainer: Jan Alexander Steffens (heftig) <heftig@archlinux.org>
2 # Contributor: Jan de Groot <jgc@archlinux.org>
3 # Contributor: Tom Newsom <Jeepster@gmx.co.uk>
6 pkgname=(libsigc++ libsigc++-docs)
9 pkgdesc="Callback Framework for C++"
10 url="https://libsigcplusplus.github.io/libsigcplusplus/"
14 makedepends=(git meson mm-common)
16 _commit=9ae288305b16e4aee2d2ea1fcfb5968c924fa219 # tags/2.12.0^0
17 source=("git+https://github.com/libsigcplusplus/libsigcplusplus#commit=$_commit")
22 git describe --tags | sed 's/-/+/g'
30 arch-meson libsigcplusplus build -D maintainer-mode=true
31 meson compile -C build
35 meson test -C build --print-errorlogs
38 # Do not remove the space before the () or commitpkg will
39 # accidentally to run this function on the system (!!!)
40 package_libsigc++ () {
41 provides=("libsigc++2.0=$pkgver" libsigc-2.0.so)
42 conflicts=(libsigc++2.0)
43 replaces=(libsigc++2.0)
45 meson install -C build --destdir "$pkgdir"
48 mkdir -p docs/usr/share
49 mv -t docs/usr/share "$pkgdir"/usr/share/{devhelp,doc}
52 package_libsigc++-docs() {
53 pkgdesc+=" (documentation)"
55 provides=("libsigc++2.0-docs=$pkgver")
56 conflicts=(libsigc++2.0-docs)
57 replaces=(libsigc++2.0-docs)
60 mv -t "$pkgdir" docs/*