# SliTaz package receipt.

PACKAGE="xorg-libXxf86misc"
VERSION="1.0.4"
SOURCE="libXxf86misc"
CATEGORY="x-window"
SHORT_DESC="XFree86-MISC extension library"
MAINTAINER="al.bobylev@gmail.com"
LICENSE="MIT"
WEB_SITE="https://www.x.org/wiki/"
TARBALL="$SOURCE-$VERSION.tar.bz2"
WGET_URL="$XORG_MIRROR/lib/$TARBALL"

BUILD_DEPENDS="xorg-xproto xorg-libX11-dev xorg-libXext-dev"
DEPENDS="xorg-libX11 xorg-libXext"

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

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