SliTaz Packages

Community Doc Forum Pro Shop Bugs Hg
.

Receipt for package "weston"

# SliTaz package receipt.

PACKAGE="weston"
VERSION="1.4.0"
CATEGORY="x-window"
SHORT_DESC="Reference implementation of a Wayland compositor."
MAINTAINER="pankso@slitaz.org"
LICENSE="MIT"
TARBALL="$PACKAGE-$VERSION.tar.xz"
WEB_SITE="https://wayland.freedesktop.org/"
WGET_URL="https://wayland.freedesktop.org/releases/$TARBALL"

DEPENDS="wayland mesa-wayland cairo-gl libxkbcommon libunwind mtdev \
xorg-libXcursor pam liblzma"
BUILD_DEPENDS="wayland-dev mesa-wayland-dev cairo-gl-dev libxkbcommon-dev \
libunwind-dev mtdev-dev xorg-libXcursor-dev pam-dev liblzma-dev \
gegl-dev libdrm-dev xorg-libXxf86vm-dev udev-dev pkg-config jpeg-dev file"

# What is the latest version available today?
current_version()
{
    wget -O - 'https://gitlab.freedesktop.org/wayland/weston/-/tags?sort=updated_desc' 2>/dev/null | \
    sed '/item-title/!d;s|.*">||;s|<.*||;q'
}

# Rules to configure and make the package.
compile_rules()
{
    sed -i 's|git-version.h : .FORCE|git-version.h :|' src/Makefile*
    ./configure \
        --prefix=/usr \
        --libexec=/usr/lib/weston \
        --disable-documentation \
        --enable-fbdev-compositor &&
    make && make install
}

# Rules to gen a SliTaz package suitable for Tazpkg.
genpkg_rules()
{
    mkdir -p $fs/usr/lib/weston $fs/usr/share
    cp -a $install/usr/bin $fs/usr
    cp -a $install/usr/lib/weston/*.so* $fs/usr/lib/weston
    cp -a $install/usr/lib/weston/weston-* $fs/usr/lib/weston
    cp -a $install/usr/share/weston $fs/usr/share
    # Custom weston-session
    cp -f $stuff/weston-session $fs/usr/bin
}

6047 packages and 209931 files in current database (Wed Jun 26 15:35:30 2024)