# Maintainer: PktSurf <smlinux@pktsurf.in>
# For some reason, SSB fails to install the resulting package because of 
# "++". So we rename it.
app=libsigcpp
altername=libsigc++
version=2.9.3
build=1sml
homepage="https://libsigcplusplus.github.io/libsigcplusplus/"
download="https://download.gnome.org/sources/libsigc++/2.9/libsigc%2B%2B-$version.tar.xz"
desc="Typesafe callback system for standard C++"
requires="gcc-libs"

prepbuilddir() {
  mkandenterbuilddir
  rm -rf $altername-$version

  tar xf $srcdir/$altername-$version.tar.?z
  cd $altername-$version
  fixbuilddirpermissions
}

build() {
  ./configure \
    --prefix="" \
    --disable-documentation

  for i in tests docs examples ; do
    printf 'all:\n\ttrue\ninstall:\n\ttrue\nclean:\n\ttrue\n' > "$i"/Makefile
  done

  make
  make install DESTDIR=$pkg

  cp COPYING $pkgdocs/

  mkfinalpkg
}

sha512sums="
43ed5de8a0418854d6cf0cf8609e54dae93ad3ffec1ff03fa5b102d14b0ee573976bd1421211e8b4f2a0e4802bed31aecd0c97548f6ecec6eda2e614a58b08d4  libsigc++-2.9.3.tar.lz
"
