SliTaz Packages

Community Doc Forum Pro Shop Bugs Hg
.

Receipt for package "xcb-proto"

# SliTaz package receipt.

PACKAGE="xcb-proto"
VERSION="1.14.1"
CATEGORY="development"
SHORT_DESC="X protocol descriptions for XCB."
MAINTAINER="mallory@sweetpeople.org"
LICENSE="other"
WEB_SITE="https://xcb.freedesktop.org/"

TARBALL="$PACKAGE-$VERSION.tar.xz"
WGET_URL="https://xorg.freedesktop.org/archive/individual/proto/$TARBALL"

DEPENDS="pkg-config python"
BUILD_DEPENDS="libxml2-tools python-dev"

HOST_ARCH="i486 arm"

case "$ARCH" in
    arm) BUILD_DEPENDS="" ;;
esac

# @maintainer: Please update also: libxcb and libxcb-dev

# 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()
{
    ./configure            \
        --sysconfdir=/etc    \
        --localstatedir=/var    \
        $CONFIGURE_ARGS &&
    make &&
    make install
}

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

    cp -a $src/COPYING    $fs/usr/share/licenses/$PACKAGE.txt
    cp -a $install/*    $fs

    # cook removes *.pyc *.pyo files by itself, but leaves them in files.list
    find $fs -name '*.py?' -delete
}
6047 packages and 209931 files in current database (Wed Jun 26 15:35:30 2024)