SliTaz Packages

Community Doc Forum Pro Shop Bugs Hg
.

Receipt for package "xorg-presentproto"

# SliTaz package receipt.

PACKAGE="xorg-presentproto"
VERSION="1.2"
RVERSION="1.1"
CATEGORY="development"
SHORT_DESC="Present extension headers."
MAINTAINER="pascal.bellard@slitaz.org"
LICENSE="other"
WEB_SITE="https://www.x.org/wiki/"

SOURCE="presentproto"
TARBALL="$SOURCE-$RVERSION.tar.bz2"
WGET_URL="$XORG_MIRROR/proto/$TARBALL"

DEPENDS="pkg-config xorg-util-macros"
BUILD_DEPENDS="xorg-util-macros"

current_version()
{
    wget -O - $(dirname $WGET_URL) 2>/dev/null | \
    sed "/$SOURCE-[0-9]/!d;/tar/!d;s|.*$SOURCE-\\(.*\\).tar.*\".*|\\1|" | sort -Vr | sed q
}

# Rules to configure and make the package.
compile_rules()
{
        # Patch to bump 1.2
        # see https://build.opensuse.org/package/show/openSUSE:Leap:15.4/presentproto
        patch -p1 < $stuff/presentproto-2018.4.patch

    ./configure            \
        --sysconfdir=/etc    \
        --localstatedir=/var    \
        $CONFIGURE_ARGS &&
    make &&
    make install
}

# Rules to gen a SliTaz package suitable for Tazpkg.
genpkg_rules()
{
    cp -a $install/* $fs
    rm -rf $fs/usr/share

        # Ensure remove .la files
        find $fs -name "*.la" -delete
}
6025 packages and 203154 files in current database (Thu Apr 25 06:17:47 2024)