summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorMateusz Gozdek2020-07-06 11:39:54 +0200
committerMateusz Gozdek2020-07-06 11:39:54 +0200
commitf900696bc4944f7766a442a21cffde8d3cde022e (patch)
treefc423789dba5bc29777d4935df22d0ec39930e6d /PKGBUILD
parentef4cb7d793f1affdb0de884deda8b4ca45006d05 (diff)
downloadaur-f900696bc4944f7766a442a21cffde8d3cde022e.tar.gz
Update to 1.4
This release added new dependency on libusbmuxd and libplist, which libusbmuxd also depends on. Upstream currenly hardcodes library name, which is different on Arch, so patch is required to keep building. Upstream patch to fix that: https://github.com/aramg/droidcam/pull/82 Signed-off-by: Mateusz Gozdek <mgozdekof@gmail.com>
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD18
1 files changed, 13 insertions, 5 deletions
diff --git a/PKGBUILD b/PKGBUILD
index fc9a094f19b..dbbc7408bd6 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -5,8 +5,8 @@
pkgbase=droidcam
pkgname=('droidcam' 'v4l2loopback-dc-dkms')
-pkgver=1.3
-pkgrel=2
+pkgver=1.4
+pkgrel=1
epoch=1
pkgdesc='A tool for using your android device as a wireless/usb webcam'
arch=('x86_64')
@@ -19,16 +19,22 @@ source=("${pkgbase}.desktop"
"dkms.conf"
"${pkgbase}.conf"
"${pkgbase}-${pkgver}.zip::${url}/archive/v${pkgver}.zip"
+ "0001-Makefile-allow-to-modify-how-to-link-to-libusbmuxd.patch"
)
sha512sums=('72d21aa2d7eecc9bb070aaf7059a671246feb22f9c39b934a5463a4839f9347050de00754e5031dbc44f78eb2731f58f0cd2fcf781bc241f6fbd1abb4308b7ee'
'27848dc6825c965c0aaac8e86220c3916ba20df6d941f5f05caecbf9c329ee744ee883bd2638ba58fe0dc3f40a8ae804dafbfbbe2efc23237e2b5450606cb78d'
'ea457b46a2fc9f1a3ea8e99f2cd0771a587cff89f42335fdaf55988dda0376a1fea73b660174c9f1906a304bace68bffec30b70b20dafc05ebae8854d9aadb13'
- 'c783b62c530c521aa7f047073efe74b57f28fbadbd097dca595fb582820566aedd03c6e92d2f24d9ff84dceed8ab51955ad77e80481ebfb6e30423425f8f2953')
+ '3168d76d5d6f8b5a0f66858a40ac2ab6fb3b9e0db3ffdcab405367541569da6f4475b7893bb90b8dbd0478876678bc138afe9d472765c422e3300426215a5456'
+ 'ee56372bd0f63c4b89ba860c7d6df3d8f7a4de19e72258425b008e405d32e3efc3695c6eca6a8f1b8b4822e0ac8515e8ec504f55f6257a0453b0cb08ba33a582')
prepare() {
# Generate the module loading configuration files
echo "options v4l2loopback_dc width=640 height=480" >| "${pkgbase}.modprobe.conf"
+
+ # Apply patches.
+ cd "${pkgname}-${pkgver}"
+ patch -p0 --input="${srcdir}/0001-Makefile-allow-to-modify-how-to-link-to-libusbmuxd.patch"
}
build() {
@@ -36,11 +42,13 @@ build() {
# All JPEG* parameters are needed to use shared version of libturbojpeg instead of
# static one.
- make JPEG_DIR="" JPEG_INCLUDE="" JPEG_LIB="" JPEG=$(pkg-config --libs --cflags libturbojpeg)
+ #
+ # Also libusbmuxd requires an override while linking.
+ make JPEG_DIR="" JPEG_INCLUDE="" JPEG_LIB="" JPEG=$(pkg-config --libs --cflags libturbojpeg) USBMUXD=-lusbmuxd-2.0
}
package_droidcam() {
- depends=('alsa-lib' 'libjpeg-turbo' 'ffmpeg' 'v4l2loopback-dc-dkms')
+ depends=('alsa-lib' 'libjpeg-turbo' 'ffmpeg' 'v4l2loopback-dc-dkms' 'libusbmuxd')
optdepends=('gtk3: use GUI version in addition to CLI interface' )
pushd ${pkgbase}-${pkgver}/linux