SliTaz Packages

Community Doc Forum Pro Shop Bugs Hg
.

Receipt for package "compiz-plugins-extra"

# SliTaz package receipt.

PACKAGE="compiz-plugins-extra"
VERSION="0.8.14"
CATEGORY="x-window"
SHORT_DESC="Compiz extra plugins."
MAINTAINER="psychomaniak@xakep.ru"
LICENSE="GPL2"
WEB_SITE="https://github.com/compiz-reloaded"

TARBALL="$PACKAGE-$VERSION.tar.xz"
WGET_URL="$WEB_SITE/$PACKAGE/releases/download/v$VERSION/$TARBALL"

WGET_URL2="$WEB_SITE/$PACKAGE/commit/0b2a652.diff"
EXTRA_SOURCE_FILES="$PACKAGE-0b2a652.u"

DEPENDS="compiz-core compiz-libcompizconfig compiz-plugins-main 
    gtk+ libnotify librsvg xorg-libX11"
BUILD_DEPENDS="cmake compiz-bcop compiz-core-dev compiz-libcompizconfig-dev 
    compiz-plugins-main-dev file gtk+-dev intltool libnotify-dev 
    librsvg-dev libtool libxslt-dev mesa-dev startup-notification-dev 
    util-linux-getopt util-linux-uuid-dev xcb-util-dev xorg-dev"

current_version()
{
    wget -O - ${WGET_URL%/down*} 2>/dev/null | \
    sed '/archive.*tar/!d;s|.*/v\(.*\).tar.*|\1|;q'
}

# Rules to configure and make the package.
compile_rules()
{
    # 0.8.12.1
#    [ -s $SOURCES_REPOSITORY/$EXTRA_SOURCE_FILES ] || \
#        wget -O $SOURCES_REPOSITORY/$EXTRA_SOURCE_FILES $WGET_URL2
#    patch -p1 -i $SOURCES_REPOSITORY/$EXTRA_SOURCE_FILES

    ./configure --prefix=/usr &&
    make &&
    make install
}

# Rules to gen a SliTaz package suitable for Tazpkg.
genpkg_rules()
{
    mkdir -p $fs/usr/lib
    mkdir -p $fs/usr/share/locale

    cp -a $install/usr/lib/compiz    $fs/usr/lib
    cp -a $install/usr/share/compiz    $fs/usr/share

    # Set list of wanted locales in LOCALE_PACK
    . $WOK/slitaz-i18n/stuff/locale-pack.conf

    # Copy message files in wanted languages, if available
    for locale in $LOCALE_PACK
      do
        [ -d $install/usr/share/locale/$locale ] || continue
        cp -a $install/usr/share/locale/$locale $fs/usr/share/locale
      done

    cd $fs/usr/lib/compiz; rm -f *.a *.la
}
6025 packages and 203154 files in current database (Thu Apr 25 06:17:47 2024)