# SliTaz package receipt. PACKAGE="linux-usb-misc" VERSION="4.19.294" CATEGORY="base-system" SHORT_DESC="The Linux kernel misc. USB drivers, including the Lego USB tower." MAINTAINER="rcx@zoominternet.net" LICENSE="GPL2" WANTED="linux" DEPENDS="linux" WEB_SITE="https://www.kernel.org/" # Rules to gen a SliTaz package suitable for Tazpkg. genpkg_rules() { local path path=lib/modules/$VERSION-slitaz/kernel mkdir -p $fs/$path export src install $wanted_stuff/list_modules.sh drivers/usb/misc | while read module; do dir=$path/$(dirname $module) [ -d $fs/$dir ] || mkdir -p $fs/$dir cp -a $install/$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 }