# HG changeset patch # User Pascal Bellard # Date 1563701547 -7200 # Node ID 37b2a1afa30e84a7b2f67c7ad3ea1db33afcd64f # Parent 68f9518c4cb047ea1675e67acf4541e931eead04 minetest, openal: add post_install (thanks Rene Rivero) diff -r 68f9518c4cb0 -r 37b2a1afa30e minetest/receipt --- a/minetest/receipt Sun Jul 21 10:32:10 2019 +0200 +++ b/minetest/receipt Sun Jul 21 11:32:27 2019 +0200 @@ -58,3 +58,13 @@ cp -a ${install}/usr/bin/${PACKAGE} ${fs}/usr/bin cp -a ${install}/usr/share/icons $fs/usr/share } + +# Pre and post install commands for Tazpkg. +post_install() +{ + case " $(. $1/etc/rcS.conf; echo $LOAD_MODULES) " in + *\ snd-pcm-oss\ *) ;; + *) sed -i 's|LOAD_MODULES="|&snd-pcm-oss ' $1/etc/rcS.conf + modprobe snd-pcm-oss;; + esac +} diff -r 68f9518c4cb0 -r 37b2a1afa30e openal/receipt --- a/openal/receipt Sun Jul 21 10:32:10 2019 +0200 +++ b/openal/receipt Sun Jul 21 11:32:27 2019 +0200 @@ -28,3 +28,13 @@ cp -a $install/usr/bin $fs/usr cp -a $install/usr/lib/*.so* $fs/usr/lib } + +# Pre and post install commands for Tazpkg. +post_install() +{ + case " $(. $1/etc/rcS.conf; echo $LOAD_MODULES) " in + *\ snd-pcm-oss\ *) ;; + *) sed -i 's|LOAD_MODULES="|&snd-pcm-oss ' $1/etc/rcS.conf + modprobe snd-pcm-oss;; + esac +}