# SliTaz package receipt. PACKAGE="linux-media" VERSION="3.16.55" CATEGORY="base-system" SHORT_DESC="The Linux kernel media modules." MAINTAINER="slaxemulator@gmail.com" LICENSE="GPL2" DEPENDS="linux" WANTED="linux" WEB_SITE="https://kernel.org/" # Modules paths and list MOD_PATH="lib/modules/$VERSION-slitaz/kernel" MODULES="drivers/media drivers/mfd" # 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 for i in $(cat $wanted_stuff/modules.list); do if [ -f $fs/$path/$i ]; then rm -f $fs/$path/$i fi done } # Post install/remove commands for Tazpkg. post_install() { chroot "$root/" depmod -a $VERSION-slitaz } post_remove() { chroot "$root/" depmod -a $VERSION-slitaz }