SliTaz Packages

Community Doc Forum Pro Shop Bugs Hg
.

Receipt for package "tp_smapi"

# SliTaz package receipt.

PACKAGE="tp_smapi"
VERSION="0.43"
CATEGORY="base-system"
SHORT_DESC="IBM ThinkPad SMAPI BIOS driver"
MAINTAINER="domcox@slitaz.org"
LICENSE="GPL2"
TARBALL="$PACKAGE-$VERSION.tar.gz"
WEB_SITE="https://github.com/linux-thinkpad/tp_smapi"
WGET_URL="https://github.com/linux-thinkpad/tp_smapi/archive/refs/tags/tp-smapi/$VERSION.tar.gz"

BUILD_DEPENDS="linux-module-headers linux-source wget"

# What is the latest version available today?
current_version()
{
    wget -O - $WEB_SITE/releases 2>/dev/null | \
    sed '/archive.*tar/!d;s|.*/[A-Za-z_-]*\(.*\).tar.*|\1|;q'
}

# Rules to configure and make the package.
compile_rules()
{
    sed -i "s/uname -r/echo $kvers-slitaz/" Makefile
    make modules HDAPS=1
}

# Rules to gen a SliTaz package suitable for Tazpkg.
genpkg_rules()
{
    MOD_DIR=lib/modules/$kvers-slitaz/extra
    mkdir -p $fs/$MOD_DIR
    cp -a $src/*.ko $fs/$MOD_DIR
}

post_install()
{
    chroot "$1/" depmod -a
}
6025 packages and 203154 files in current database (Thu Apr 25 06:17:47 2024)