SliTaz Packages

Community Doc Forum Pro Shop Bugs Hg
.

Receipt for package "wayland"

# SliTaz package receipt.

PACKAGE="wayland"
VERSION="1.22.0"
CATEGORY="x-window"
SHORT_DESC="Wayland simpler X display server protocol."
MAINTAINER="pankso@slitaz.org"
LICENSE="MIT"
WEB_SITE="https://wayland.freedesktop.org/"

TARBALL="$PACKAGE-$VERSION.tar.xz"
WGET_URL="https://gitlab.freedesktop.org/$PACKAGE/$PACKAGE/-/releases/$VERSION/downloads/$TARBALL"

# WARNING: wayland must be installed in chroot since build host 
# wayland-scanner is used for cross compilation to ARM
DEPENDS="expat gcc-lib-base libffi"
BUILD_DEPENDS="expat-dev gcc libffi-dev meson"

HOST_ARCH="i486 arm"

# Handle cross compilation
case "$ARCH" in
    arm*) ARCH_ARGS="--disable-scanner" ;;
esac

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

# Rules to configure and make the package.
compile_rules()
{
    meson    _build            \
        -D documentation=false    \
        --buildtype=release \
        --prefix=/usr &&

    ninja    -C _build &&
    ninja    -C _build install
}

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

    [ -d "$install/usr/bin" ] &&
    cp -a $install/usr/bin            $fs/usr
    cp -a $install/usr/lib/*.so*        $fs/usr/lib
    cp -a $install/usr/share/wayland    $fs/usr/share
}
6047 packages and 209931 files in current database (Wed Jun 26 15:35:30 2024)