SliTaz Packages

Community Doc Forum Pro Shop Bugs Hg
.

Receipt for package "iw"

# SliTaz package receipt.

PACKAGE="iw"
VERSION="5.16"
CATEGORY="network"
TAGS="wireless"
SHORT_DESC="Wireless configuration tool."
MAINTAINER="pascal.bellard@slitaz.org"
LICENSE="MIT"
WEB_SITE="https://wireless.wiki.kernel.org/en/users/documentation/iw"

TARBALL="$PACKAGE-$VERSION.tar.xz"
WGET_URL="https://www.kernel.org/pub/software/network/iw/$TARBALL"

DEPENDS="libnl"
BUILD_DEPENDS="libnl-dev pkg-config"

HOST_ARCH="i486 arm"

# 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()
{
    export    LDFLAGS="$LDFLAGS -lrt"

    make &&
    make install DESTDIR=$DESTDIR
}

# Rules to gen a SliTaz package suitable for Tazpkg.
genpkg_rules()
{    
    cook_copy_folders    sbin
}
6025 packages and 203154 files in current database (Thu Apr 25 06:17:47 2024)