SliTaz Packages

Community Doc Forum Pro Shop Bugs Hg
.

Receipt for package "dmidecode"

# SliTaz package receipt.

PACKAGE="dmidecode"
VERSION="3.3"
CATEGORY="system-tools"
SHORT_DESC="SMBIOS/DMI reports."
MAINTAINER="erjo@slitaz.org"
LICENSE="GPL2"
WEB_SITE="https://www.nongnu.org/dmidecode/"

TARBALL="$PACKAGE-$VERSION.tar.xz"
WGET_URL="https://download.savannah.gnu.org/releases/$PACKAGE/$TARBALL"

DEPENDS=""

# What is the latest version available today?
current_version()
{
    wget -O - ${WGET_URL%/*} 2>/dev/null | \
    sed "/$PACKAGE-/!d;/tar/!d;s|.*$PACKAGE-||;s|.tar.*||" | sort -Vr | sed q
}

# Rules to configure and make the package.
compile_rules()
{
    sed -i 's|uname -m|echo i486|' Makefile

    make &&
    make install DESTDIR=$DESTDIR
}

# Rules to gen a SliTaz package suitable for Tazpkg.
genpkg_rules()
{
    mkdir -p $fs/usr/sbin
    cp -a $install/usr/local/sbin/*    $fs/usr/sbin
}
6025 packages and 203154 files in current database (Thu Apr 25 06:17:47 2024)