wok-current diff openal/receipt @ 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 | a3886193b324 |
children | 3be8209f2bdf |
line diff
1.1 --- a/openal/receipt Fri Jul 10 16:51:38 2015 +0200 1.2 +++ b/openal/receipt Sun Jul 21 11:32:27 2019 +0200 1.3 @@ -28,3 +28,13 @@ 1.4 cp -a $install/usr/bin $fs/usr 1.5 cp -a $install/usr/lib/*.so* $fs/usr/lib 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 +}