# SliTaz package receipt.

PACKAGE="xorg-xproto"
VERSION="2020.1"
CATEGORY="development"
SHORT_DESC="Xorg server module."
MAINTAINER="pankso@slitaz.org"
DEPENDS="xorg-util-macros"
BUILD_DEPENDS="xorg-util-macros"
SOURCE="xorgproto"
TARBALL="$SOURCE-$VERSION.tar.bz2"
WEB_SITE="http://www.x.org/"
WGET_URL="$XORG_MIRROR/proto/$TARBALL"

# Rules to configure and make the package.
compile_rules()
{
    cd $src
    # enable legacy for libXxf86misc
    ./configure --prefix=/usr \
        --sysconfdir=/etc \
        --mandir=/usr/share/man \
        --localstatedir=/var \
        --enable-legacy \
        $CONFIGURE_ARGS \
    make &&
    make DESTDIR=$PWD/_pkg install || return 1
}

# Rules to gen a SliTaz package suitable for Tazpkg.
genpkg_rules()
{
    cp -a $_pkg/* $fs
}