diff options
author | Andreo Rissardo <andreotec@gmail.com> | 2022-08-25 12:20:39 +0100 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2022-08-27 22:50:29 +0700 |
commit | 31025357fed0b21e8323588810f8bd49d9eee6e3 (patch) | |
tree | 1b58fb544ee4e98e31f9d876bc31e0c60c22b109 /multimedia/droidcam/doinst.sh | |
parent | a963867ec73fdecd3172699a75b49a854e3f64fe (diff) |
multimedia/droidcam: Updated for version 1.8.2.
Signed-off-by: Dave Woodfall <dave@slackbuilds.org>
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'multimedia/droidcam/doinst.sh')
-rw-r--r-- | multimedia/droidcam/doinst.sh | 25 |
1 files changed, 20 insertions, 5 deletions
diff --git a/multimedia/droidcam/doinst.sh b/multimedia/droidcam/doinst.sh index 02d9e036da698..4c9ca035388c2 100644 --- a/multimedia/droidcam/doinst.sh +++ b/multimedia/droidcam/doinst.sh @@ -1,3 +1,6 @@ +VERSION="1.8.2" +MODULE="v4l2loopback-dc" + if [ -x /usr/bin/update-desktop-database ]; then /usr/bin/update-desktop-database -q usr/share/applications >/dev/null 2>&1 fi @@ -6,10 +9,22 @@ if [ -x /usr/bin/update-mime-database ]; then /usr/bin/update-mime-database usr/share/mime >/dev/null 2>&1 fi -if [ -d /opt/droidcam-1.7.2 ]; then - cd /opt/droidcam-1.7.2 && ./install-video >/dev/null 2>&1 -fi +_installModule(){ + + cp -r /tmp/SBo/$MODULE-$VERSION /usr/src/ + dkms add -m $MODULE -v $VERSION + dkms build -m $MODULE -v $VERSION + dkms install -m $MODULE -v $VERSION + /sbin/modprobe $MODULE + /sbin/modprobe snd-aloop +} + +if [ "lsmod | grep v4l2loopback_dc" ]; then + + _installModule + +else + + echo "Module v4l2loopback_dc installed" -if [ -d /opt/droidcam-1.7.2 ]; then - cd /opt/droidcam-1.7.2 && ./install-sound >/dev/null 2>&1 fi |