Receipt for: linux-lts-input
PACKAGE="linux-lts-input"
VERSION="6.12.89"
CATEGORY="base-system"
SHORT_DESC="The Linux LTS kernel input and HID modules."
MAINTAINER="devel@slitaz.org"
LICENSE="GPL2"
DEPENDS="linux-lts"
WANTED="linux-lts"
HOST_ARCH="i486 x86_64"
WEB_SITE="https://www.kernel.org/"
genpkg_rules()
{
local path
path=lib/modules/$VERSION-slitaz/kernel
mkdir -p $fs/$path
export src install
$wanted_stuff/list_modules.sh drivers/input drivers/hid drivers/accessibility | while read module; do
dir=$path/$(dirname $module)
[ -d $fs/$dir ] || mkdir -p $fs/$dir
cp -a $install/$path/$module $fs/$dir 2>/dev/null || true
done
# Drop modules already shipped by the master linux-lts package.
for i in $(cat $wanted_stuff/modules.list); do
[ -f $fs/$path/$i ] && rm -f $fs/$path/$i
done
return 0
}
post_install() { chroot "$root/" depmod -a $VERSION-slitaz; }
post_remove() { chroot "$root/" depmod -a $VERSION-slitaz; }