1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
# https://wiki.archlinux.org/index.php/Dynamic_Kernel_Module_Support # https://git.archlinux.org/pacman.git/plain/proto/proto.install post_install() { dkms install -m hid-tmff2 -v ${1%%-*} } pre_upgrade() { pre_remove ${2%%-*} } post_upgrade() { post_install ${1%%-*} } pre_remove() { dkms remove -m hid-tmff2 -v ${1%%-*} --all }