# SliTaz package receipt. PACKAGE="linux-toshiba" VERSION="4.19.294" CATEGORY="base-system" SHORT_DESC="The Linux kernel toshiba module." MAINTAINER="devel@slitaz.org" LICENSE="GPL2" DEPENDS="linux" WANTED="linux" WEB_SITE="https://www.kernel.org/" # Modules paths and list MOD_PATH="lib/modules/$VERSION-slitaz/kernel" MODULES="drivers/char/toshiba.ko.xz" # Rules to gen a SliTaz package suitable for Tazpkg. genpkg_rules() { mkdir -p ${fs}/${MOD_PATH} for module in $MODULES do dir=$MOD_PATH/$(dirname $module) [ -d $fs/$dir ] || mkdir -p $fs/$dir cp -a $install/$MOD_PATH/$module $fs/$dir done } # Post install/remove commands for Tazpkg. post_install() { chroot "$root/" depmod -a $VERSION-slitaz } post_remove() { chroot "$root/" depmod -a $VERSION-slitaz }