Package Details: droidcam 1:2.1.3-2

Git Clone URL: https://aur.archlinux.org/droidcam.git (read-only, click to copy)
Package Base: droidcam
Description: A tool to turn your phone/tablet into a wireless/usb webcam
Upstream URL: https://github.com/dev47apps/droidcam-linux-client
Keywords: android ios webcam
Licenses: GPL-2.0-or-later
Submitter: marquicus
Maintainer: mhdi
Last Packager: mhdi
Votes: 140
Popularity: 1.54
First Submitted: 2011-06-29 20:31 (UTC)
Last Updated: 2024-06-14 19:38 (UTC)

Dependencies (21)

Required by (0)

Sources (3)

Pinned Comments

Latest Comments

1 2 3 4 5 6 .. 37 Next › Last »

peetwastaken commented on 2024-07-26 09:21 (UTC)

The most recent rolling upgrade moved ffmeg to version 7, which does not ship libswscale.so.7 anymore. This makes droidcam not start anymore when this package was installed before the release. Solution: Reinstall the droidcam package to force a rebuild.

Maybe the version of the package can be bumped to force a rebuild for all users?

mnyolt commented on 2024-06-12 08:59 (UTC)

The sha256sum of the release sources do not match what is in the PKGBUILD.

86d18029364d8ecd8b1a8fcae4cc37122f43683326fe49922b2ce2c8cf01e49d droidcam-linux-client-2.1.3.tar.gz

Also, the repository seems to have moved to https://github.com/dev47apps/droidcam-linux-client.

amdlike commented on 2024-04-04 21:30 (UTC)

Please add this fix to PKGBUILD

# Maintainer: CodeXYZ <jesusbalbastro@gmail.com>
# Maintainer: Mateusz Gozdek <mgozdekof@gmail.com>
# Contributor: Rein Fernhout <me@levitati.ng>
# Past Contributor: James An <james@jamesan.ca>

pkgbase=droidcam
pkgname=('droidcam' 'v4l2loopback-dc-dkms')
pkgver=2.1.3
pkgrel=1
epoch=1
pkgdesc='A tool for using your android device as a wireless/usb webcam'
arch=('x86_64')
url="https://github.com/dev47apps/${pkgbase}"
license=('GPL')
makedepends=('libappindicator-gtk3' 'gtk3' 'ffmpeg' 'libusbmuxd')

source=("${pkgbase}.desktop"
        "dkms.conf"
        "${pkgbase}.conf"
        "${pkgbase}-${pkgver}.zip::${url}/archive/refs/tags/v${pkgver}.zip"
)

sha256sums=('90dd73cf146fae0de0c11b46e97412d2aaca50ec879e1be2d793261e853dd0d3'
            '1e91f58ae83d433d32b483b14f1bb39cc245d2ace711b12c894de27dd2ea3413'
            '1d4b3ff98b4af9de77a24d1b6fad6e004deadf1f157eb800aa878ba1e7693dac'
            '3e3f48ad48bd6775d81d424d6822e810124c229069c1d11fd5283a1cbc3dff77')

prepare() {
  # Generate the module loading configuration files
  echo "options v4l2loopback_dc width=640 height=480" >| "${pkgbase}.modprobe.conf"
}

build() {
  cd ${pkgbase}-${pkgver}

  # All JPEG* parameters are needed to use shared version of libturbojpeg instead of
  # static one.
  #
  # Also libusbmuxd requires an override while linking.
  make JPEG_DIR="/usr/lib" JPEG_INCLUDE="/usr/include" JPEG_LIB="-lturbojpeg" USBMUXD=-lusbmuxd-2.0
}

package_droidcam() {
  depends=('alsa-lib' 'libjpeg-turbo' 'ffmpeg' 'v4l2loopback-dc-dkms' 'libusbmuxd')
  optdepends=('gtk3: use GUI version in addition to CLI interface' 'libappindicator-gtk3: use GUI version in addition to CLI interface')

  pushd ${pkgbase}-${pkgver}

  # Install droidcam program files
  install -Dm755 "${pkgbase}" "$pkgdir/usr/bin/${pkgbase}"
  install -Dm755 "${pkgbase}-cli" "$pkgdir/usr/bin/${pkgbase}-cli"
  install -Dm644 icon2.png "${pkgdir}/usr/share/pixmaps/${pkgbase}.png"
  install -Dm644 icon2.png "${pkgdir}/opt/droidcam-icon.png"
  install -Dm644 "${srcdir}/${pkgbase}.desktop" "${pkgdir}/usr/share/applications/${pkgbase}.desktop"
  install -Dm644 "${srcdir}/${pkgbase}.conf" "${pkgdir}/etc/modules-load.d/${pkgbase}.conf"
  install -Dm644 README.md "${pkgdir}/usr/share/licenses/${pkgbase}/LICENSE"
}

package_v4l2loopback-dc-dkms() {
  depends=('dkms')
  backup=("etc/modprobe.d/${pkgbase}.conf")

  _pkgname=v4l2loopback-dc
  local install_dir="${pkgdir}/usr/src/${_pkgname}-${pkgver}"

  # Copy dkms.conf
  install -Dm644 dkms.conf "${install_dir}/dkms.conf"

  # Set name and version
  sed -e "s/@_PKGNAME@/${_pkgname}/" -e "s/@PKGVER@/${pkgver}/" -i "${install_dir}/dkms.conf"

  # Install module loading configuration
  install -Dm644 "${pkgbase}.modprobe.conf" "${pkgdir}/etc/modprobe.d/${pkgbase}.conf"

  # Install module source
  cd ${pkgbase}-${pkgver}/v4l2loopback

  for d in $(find . -type d); do
    install -dm755 "${install_dir}/${d}"
  done

  for f in $(find . -type f ! -name '.gitignore'); do
    install -m644 "${f}" "${install_dir}/${f}"
  done
}

sayang2001 commented on 2024-03-27 06:45 (UTC)

The patch for supporting kernel 6.8 has been patched to upstream master. please update the PKGBUILD accordingly.

undg commented on 2024-03-22 10:05 (UTC)

Until patch for kernel 6.8 will be released by v4l2loopback team, I've switched to v4l2loopback-dkms-git (AUR). This solves problem of compilation.

lutze commented on 2024-03-20 09:19 (UTC)

Hi, i did this way

--- PKGBUILD  2024-03-20 09:03:17.703065352 +0100
+++ PKGBUILD.mine 2024-03-20 10:03:57.499083343 +0100
@@ -6,7 +6,7 @@
 pkgbase=droidcam
 pkgname=('droidcam' 'v4l2loopback-dc-dkms')
 pkgver=2.1.2
-pkgrel=1
+pkgrel=2
 epoch=1
 pkgdesc='A tool for using your android device as a wireless/usb webcam'
 arch=('x86_64')
@@ -18,16 +18,19 @@
         "dkms.conf"
         "${pkgbase}.conf"
         "${pkgbase}-${pkgver}.zip::${url}/archive/refs/tags/v${pkgver}.zip"
+        "https://github.com/dev47apps/droidcam/files/14626425/kernel-6.8.patch.txt"
 )

 sha256sums=('90dd73cf146fae0de0c11b46e97412d2aaca50ec879e1be2d793261e853dd0d3'
             '1e91f58ae83d433d32b483b14f1bb39cc245d2ace711b12c894de27dd2ea3413'
             '1d4b3ff98b4af9de77a24d1b6fad6e004deadf1f157eb800aa878ba1e7693dac'
-            'c669ccac95a91b5a673eef6dfceb785658f337e69c2fe0f7b1d34c82ad00e04b')
+            'c669ccac95a91b5a673eef6dfceb785658f337e69c2fe0f7b1d34c82ad00e04b'
+            'fda4d8bb6404ad02933b3dac1ab0d75d05f1e8decc6d954cf49d85d5d93fe18c')

 prepare() {
   # Generate the module loading configuration files
   echo "options v4l2loopback_dc width=640 height=480" >| "${pkgbase}.modprobe.conf"
+  patch -p0 -b -i kernel-6.8.patch.txt
 }

 build() {

Zeroedout commented on 2024-03-19 23:42 (UTC) (edited on 2024-03-19 23:43 (UTC) by Zeroedout)

Hi, this won't compile with kernel 6.8

Someone wrote a patch to get it going https://github.com/dev47apps/droidcam/issues/271

I did this on my local build but need to lookup how to wget the patch in the PKGBUILD.

HurricanePootis commented on 2024-02-18 02:00 (UTC)

Hey, why does this package make the devault v4l2loopback camera 480p? Most phones now a days are 1080p.

diff --git a/PKGBUILD b/PKGBUILD
index 315248e..d29bed1 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -27,7 +27,7 @@ sha256sums=('90dd73cf146fae0de0c11b46e97412d2aaca50ec879e1be2d793261e853dd0d3'

 prepare() {
   # Generate the module loading configuration files
-  echo "options v4l2loopback_dc width=640 height=480" >| "${pkgbase}.modprobe.conf"
+  echo "options v4l2loopback_dc width=1920 height=1080" >| "${pkgbase}.modprobe.conf"
 }

 build() {

antena commented on 2024-01-10 00:07 (UTC) (edited on 2024-01-10 00:08 (UTC) by antena)

Here's a PKGBUILD patch for version 2.1.2:

--- PKGBUILD.200    2024-01-10 01:02:42.844933818 +0100
+++ PKGBUILD.212    2024-01-10 01:05:04.254949019 +0100
@@ -5,25 +5,25 @@

 pkgbase=droidcam
 pkgname=('droidcam' 'v4l2loopback-dc-dkms')
-pkgver=2.0.0
+pkgver=2.1.2
 pkgrel=1
 epoch=1
 pkgdesc='A tool for using your android device as a wireless/usb webcam'
 arch=('x86_64')
-url="https://github.com/aramg/${pkgbase}"
+url="https://github.com/dev47apps/${pkgbase}"
 license=('GPL')
 makedepends=('libappindicator-gtk3' 'gtk3' 'ffmpeg' 'libusbmuxd')

 source=("${pkgbase}.desktop"
         "dkms.conf"
         "${pkgbase}.conf"
-        "${pkgbase}-${pkgver}.zip::${url}/archive/v${pkgver}.zip"
+        "${pkgbase}-${pkgver}.zip::${url}/archive/refs/tags/v${pkgver}.zip"
 )

 sha256sums=('90dd73cf146fae0de0c11b46e97412d2aaca50ec879e1be2d793261e853dd0d3'
             '1e91f58ae83d433d32b483b14f1bb39cc245d2ace711b12c894de27dd2ea3413'
             '1d4b3ff98b4af9de77a24d1b6fad6e004deadf1f157eb800aa878ba1e7693dac'
-            'a81a0b31c5693f63c56cf29484639c7b827ea8ce458a367bfba1e4c850beba4e')
+            'c669ccac95a91b5a673eef6dfceb785658f337e69c2fe0f7b1d34c82ad00e04b')

 prepare() {
   # Generate the module loading configuration files
@@ -37,7 +37,7 @@
   # static one.
   #
   # Also libusbmuxd requires an override while linking.
-  make JPEG_DIR="" JPEG_INCLUDE="" JPEG_LIB="" JPEG=$(pkg-config --libs --cflags libturbojpeg) USBMUXD=-lusbmuxd-2.0
+  make JPEG_DIR="/usr/lib" JPEG_INCLUDE="/usr/include" JPEG_LIB="-lturbojpeg" USBMUXD=-lusbmuxd-2.0
 }

 package_droidcam() {