SliTaz Packages

Community Doc Forum Pro Shop Bugs Hg
.

Receipt for package "awesome"

# SliTaz package receipt.

PACKAGE="awesome"
VERSION="3.4.9"
CATEGORY="x-window"
SHORT_DESC="awesome is a highly configurable, next generation framework window manager for X."
MAINTAINER="mallory@sweetpeople.org"
TARBALL="$PACKAGE-$VERSION.tar.bz2"
WEB_SITE="http://awesome.naquadah.org"
WGET_URL="$WEB_SITE/download/$TARBALL"
TAGS="window-manager wm"

DEPENDS="xorg-libX11 libxcb xcb-util lua pango cairo imlib2 dbus libev \
libxdg-basedir startup-notification freetype fontconfig libpng libxdg-basedir"
BUILD_DEPENDS="cmake xorg-libX11-dev libxcb-dev xcb-util-dev lua-dev pango-dev \
cairo-dev imlib2 imlib2-dev dbus-dev libev-dev gperf cairo libxdg-basedir-dev \
startup-notification-dev imagemagick pkg-config freetype-dev fontconfig-dev \
libpng-dev libxdg-basedir-dev openexr graphviz"

# Rules to configure and make the package.
compile_rules()
{
    cd $src
    patch -Np1 -i $stuff/0001-Normalize-icon-path-names-fixes-869.patch
    make CMAKE_ARGS=" -DPREFIX=/usr -DXDG_CONFIG_DIR=/etc/xdg \
    -DCMAKE_BUILD_TYPE=RELEASE" &&
    make install
    
}

# Rules to gen a SliTaz package suitable for Tazpkg.
genpkg_rules()
{
    mkdir -p $fs/etc
    cp -a $_pkg/etc $fs/
    mkdir -p $fs/usr
    cp -a $_pkg/usr/bin $fs/usr
    cp -a $_pkg/usr/share $fs/usr
}

post_install()
{
    res=`cat $1/etc/slim.conf | grep ^session | sed s/"sessions. *"//`
    # Adding WM to SLIM available sessions.
    if ! echo "$res" | grep -q $PACKAGE; then
        echo -n "Adding $PACKAGE to /etc/slim.conf..."
        sed -i "s/^sessions.*/sessions            ${res},$PACKAGE/" /etc/slim.conf
        status
    fi
}

post_remove()
{
    # Remove WM from SLIM available sessions.
    if grep -q $PACKAGE $1/etc/slim.conf; then
        sed -i s/,$PACKAGE// $1/etc/slim.conf
    fi
}

3382 packages and 430813 files in stable database (Mon Mar 4 17:53:49 2019)