SliTaz Packages

Community Doc Forum Pro Shop Bugs Hg
.

Receipt for package "libbonobo"

# SliTaz package receipt.

PACKAGE="libbonobo"
VERSION="2.32.1"
CATEGORY="x-window"
SHORT_DESC="Librairies for GNOME"
MAINTAINER="erjo@slitaz.org"
LICENSE="GPL2"
TARBALL="$PACKAGE-$VERSION.tar.gz"
WEB_SITE="https://gitlab.gnome.org/Archive/libbonobo"
WGET_URL="$GNOME_MIRROR/$PACKAGE/${VERSION%.*}/$TARBALL"

DEPENDS="glib ORBit2 libxml2 libglade"
BUILD_DEPENDS="glib-dev libgio-dev libglade-dev ORBit2-dev libxml2-dev popt-dev bison flex intltool pkg-config"

current_version()
{
    wget -O - $(dirname $WGET_URL) 2>/dev/null | \
    sed "/$PACKAGE-[0-9]/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*\".*|\\1|" | sort -Vr | sed q
}

# Rules to configure and make the package.
compile_rules()
{
    sed -i 's/-DG_DISABLE_DEPRECATED//' activation-server/Makefile*
    ./configure \
        --prefix=/usr \
        --sysconfdir=/etc/gnome \
        --libexecdir=/usr/lib/bonobo \
        $CONFIGURE_ARGS &&
    make -j 1 && make -j 1 install
}

# Rules to gen a SliTaz package suitable for Tazpkg.
genpkg_rules()
{
    mkdir -p $fs/usr/lib
    cp -a $install/etc $fs/
    cp -a $install/usr/bin $fs/usr
    cp -a $install/usr/sbin $fs/usr
    cp -a $install/usr/lib/*.so* $fs/usr/lib
    cp -a $install/usr/lib/orbit-2.0 $fs/usr/lib
    cp -a $install/usr/lib/bonobo $fs/usr/lib
    
    # Clean unwated files
    cd $fs/usr/lib ; find . -name "*.*a" -exec rm -f {} \;
}
6025 packages and 203154 files in current database (Thu Apr 25 06:17:47 2024)