SliTaz Packages

Community Doc Forum Pro Shop Bugs Hg
.

Receipt for package "libxkbcommon"

# SliTaz package receipt.

PACKAGE="libxkbcommon"
VERSION="1.3.1"
CATEGORY="x-window"
SHORT_DESC="Keyboard handling library using XKB data."
MAINTAINER="pankso@slitaz.org"
LICENSE="MIT"
WEB_SITE="https://xkbcommon.org"

TARBALL="$PACKAGE-$VERSION.tar.xz"
WGET_URL="https://xkbcommon.org/download/$TARBALL"

DEPENDS="libxcb xorg-xkeyboard-config"
BUILD_DEPENDS="bison libxcb-dev xorg-util-macros \
xorg-xkeyboard-config-dev meson"

# What is the latest version available today?
current_version()
{
    wget -O - ${WGET_URL%/*} 2>/dev/null | \
    sed "/latest/d;/$PACKAGE-[0-9]/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*|\\1|" | sort -Vr | sed q
}

# Rules to configure and make the package.
compile_rules()
{
        meson build \
            --prefix=/usr \
            --libdir=lib \
            --bindir=/usr/bin \
            --sbindir=/usr/sbin \
            --buildtype=release \
    -Denable-docs=false \
    -Denable-wayland=false &&
        ninja -C build &&
        ninja -C build install
}

# Rules to gen a SliTaz package suitable for Tazpkg.
genpkg_rules()
{
    mkdir -p $fs/usr/lib
    cp -a $install/usr/lib/*.so* $fs/usr/lib
}
6047 packages and 209931 files in current database (Wed Jun 26 15:35:30 2024)