SliTaz Packages

Community Doc Forum Pro Shop Bugs Hg
.

Receipt for package "glibmm"

# SliTaz package receipt.

PACKAGE="glibmm"
VERSION="2.64.5"
CATEGORY="x-window"
SHORT_DESC="C++ interface for the popular GUI library GTK+."
MAINTAINER="pankso@slitaz.org"
LICENSE="LGPL2.1"
TARBALL="$PACKAGE-$VERSION.tar.xz"
WEB_SITE="https://www.gtkmm.org/"
WGET_URL="$GNOME_MIRROR/$PACKAGE/${VERSION%.*}/$TARBALL"

DEPENDS="glib libsigc++ gcc-lib-base glibc-base libffi pcre"
BUILD_DEPENDS="glib-dev libsigc++-dev meson"

current_version()
{
    wget -O - $(dirname $WGET_URL) 2>/dev/null | sed '/LATEST/!d;s|.*IS-||;s|<.*||'
}

# Rules to configure and make the package.
compile_rules()
{
    #find . -name '*.[ch]*' | xargs sed -i 's|<glib/.*h|<glib.h|'
    #sed 's/return gobject_;/return \&gobject_;/' -i glib/glibmm/threads.h

        meson build \
            --prefix=/usr \
            --libdir=lib \
            --bindir=/usr/bin \
            --sbindir=/usr/sbin \
        --datadir=/usr/share \
            --buildtype=release &&                                                         
        ninja -C build &&
        ninja -C build install
}

# Rules to gen a SliTaz package suitable for Tazpkg.
genpkg_rules()
{
    mkdir -p $fs/usr/lib
    cp -a $install/usr/lib/*.so* $fs/usr/lib
    # Remove libgiomm
    rm -rf $fs/usr/lib/libgiomm*
}
6025 packages and 203154 files in current database (Thu Apr 25 06:17:47 2024)