wok rev 21785
minetest, openal: add post_install (thanks Rene Rivero)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sun Jul 21 11:32:27 2019 +0200 (2019-07-21) |
parents | 68f9518c4cb0 |
children | 8296cfe551a1 |
files | minetest/receipt openal/receipt |
line diff
1.1 --- a/minetest/receipt Sun Jul 21 10:32:10 2019 +0200 1.2 +++ b/minetest/receipt Sun Jul 21 11:32:27 2019 +0200 1.3 @@ -58,3 +58,13 @@ 1.4 cp -a ${install}/usr/bin/${PACKAGE} ${fs}/usr/bin 1.5 cp -a ${install}/usr/share/icons $fs/usr/share 1.6 } 1.7 + 1.8 +# Pre and post install commands for Tazpkg. 1.9 +post_install() 1.10 +{ 1.11 + case " $(. $1/etc/rcS.conf; echo $LOAD_MODULES) " in 1.12 + *\ snd-pcm-oss\ *) ;; 1.13 + *) sed -i 's|LOAD_MODULES="|&snd-pcm-oss ' $1/etc/rcS.conf 1.14 + modprobe snd-pcm-oss;; 1.15 + esac 1.16 +}
2.1 --- a/openal/receipt Sun Jul 21 10:32:10 2019 +0200 2.2 +++ b/openal/receipt Sun Jul 21 11:32:27 2019 +0200 2.3 @@ -28,3 +28,13 @@ 2.4 cp -a $install/usr/bin $fs/usr 2.5 cp -a $install/usr/lib/*.so* $fs/usr/lib 2.6 } 2.7 + 2.8 +# Pre and post install commands for Tazpkg. 2.9 +post_install() 2.10 +{ 2.11 + case " $(. $1/etc/rcS.conf; echo $LOAD_MODULES) " in 2.12 + *\ snd-pcm-oss\ *) ;; 2.13 + *) sed -i 's|LOAD_MODULES="|&snd-pcm-oss ' $1/etc/rcS.conf 2.14 + modprobe snd-pcm-oss;; 2.15 + esac 2.16 +}