summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorAwesomeHaircut2020-05-23 14:31:23 -0700
committerAwesomeHaircut2020-05-23 14:31:23 -0700
commit68329e510a9a252f78f78bd1a84e403d7700e42f (patch)
tree88f2e9e26da2a0c12f5dc1f8f63899e2257ddcd2 /PKGBUILD
parentb2fa657c311a2fb878bf3b68257cb90ab33b00d7 (diff)
downloadaur-68329e510a9a252f78f78bd1a84e403d7700e42f.tar.gz
Updates andfor simplification by Mateusz Gozdek <mgozdekof@gmail.com>
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD66
1 files changed, 26 insertions, 40 deletions
diff --git a/PKGBUILD b/PKGBUILD
index d1e3b096efd..39daf58752a 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,60 +1,46 @@
# Maintainer: AwesomeHaircut <jesusbalbastro at gmail com>
+# Maintainer: Mateusz Gozdek <mgozdekof@gmail.com>
# Contributor: Rein Fernhout <public@reinfernhout.xyz>
# Past Contributor: James An <james@jamesan.ca>
pkgname=droidcam
-pkgver=6.7.5
-pkgrel=5
+_pkgver=6c7b273bd20b23a5b1074d5af30f0a13ce3d6065
+pkgver=6.7.5.6c7b273
+pkgrel=1
pkgdesc='A tool for using your android device as a wireless/usb webcam'
arch=('x86_64')
-url="https://www.dev47apps.com/$pkgname/linuxx"
-license=('custom')
-makedepends=( 'linux-headers' )
-options=('!strip')
-optdepends=('v4l-utils: Userspace tools and conversion library for Video 4 Linux'
- 'gtk2: use GUI version in addition to CLI interface' )
-install="$pkgname.install"
-source=(
- "$pkgname.desktop"
- "https://github.com/aramg/$pkgname/raw/master/linux/icon2.png"
- "$pkgname.tar.bz2::https://www.dev47apps.com/files/linux/droidcam_latest.zip"
-)
+url="https://www.dev47apps.com/${pkgname}/linuxx"
+license=('GPL')
+depends=('v4l2loopback-dc-dkms')
+optdepends=('gtk2: use GUI version in addition to CLI interface' )
-#noextract=("$pkgname.tar.bz2")
-md5sums=(
- '199d8f3dbc6697f06350b00de99f2274'
- '0f0e1d04146dd5be70d5028f144bd0a2'
- '5ff0e772a76befba4e37e03101b611d7'
+source=("${pkgname}.desktop"
+ "0001-Use-shared-version-of-libjpeg-turbo.patch"
+ "droidcam.zip::https://github.com/aramg/${pkgname}/archive/${_pkgver}.zip"
)
+sha512sums=('72d21aa2d7eecc9bb070aaf7059a671246feb22f9c39b934a5463a4839f9347050de00754e5031dbc44f78eb2731f58f0cd2fcf781bc241f6fbd1abb4308b7ee'
+ '238f41f5a3188226246e6446b3f8eceaf36472c0fb51dac995d535cf66cab27d9c43612fdfd553c57a398804db6ce817ecfaf2360ffbb53a404a05b6ac41a6bb'
+ '0bc9d1223fe598f90cb537f9978bf35410248b366e0e3a9ea4815fbcb5a99e8fed8fe00833dacb678f3f125f7614e011276ae3835f91e50f78da87131bd381b8')
+
prepare() {
- # Generate the module loading configuration files
- cat <<EOF >| "v4l2loopback/$pkgname.modules-load.conf"
-videodev
-v4l2loopback_dc
-EOF
- echo "options v4l2loopback_dc width=320 height=240" >| "v4l2loopback/$pkgname.modprobe.conf"
+ cd "${pkgname}-${_pkgver}"
+ patch -p1 --input="${srcdir}/0001-Use-shared-version-of-libjpeg-turbo.patch"
}
build() {
- cd "v4l2loopback"
+ cd ${pkgname}-${_pkgver}/linux
+
make
- gzip -f v4l2loopback-dc.ko
}
package() {
+ cd ${pkgname}-${_pkgver}/linux
+
# Install droidcam program files
- install -Dm755 "$pkgname" "$pkgdir/usr/bin/$pkgname"
- install -Dm755 "$pkgname-cli" "$pkgdir/usr/bin/$pkgname-cli"
- install -Dm644 ../icon2.png "$pkgdir/usr/share/pixmaps/$pkgname.png"
- install -Dm644 "../$pkgname.desktop" "$pkgdir/usr/share/applications/$pkgname.desktop"
- install -Dm644 README.md "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
-
- # Install kernel module and config files
- cd v4l2loopback
- MODPATH="/usr/lib/modules/$(uname -r | sed 's/.[0-9]+-[0-9]+//')/extramodules"
- install -Dm644 v4l2loopback-dc.ko.gz "$pkgdir$MODPATH/v4l2loopback_dc.ko.gz"
- install -Dm644 "$pkgname.modules-load.conf" "$pkgdir/usr/lib/modules-load.d/$pkgname.conf"
- install -Dm644 "$pkgname.modprobe.conf" "$pkgdir/etc/modprobe.d/$pkgname.conf"
+ install -Dm755 "${pkgname}" "$pkgdir/usr/bin/${pkgname}"
+ install -Dm755 "${pkgname}-cli" "$pkgdir/usr/bin/${pkgname}-cli"
+ install -Dm644 icon2.png "$pkgdir/usr/share/pixmaps/${pkgname}.png"
+ install -Dm644 "../../${pkgname}.desktop" "$pkgdir/usr/share/applications/${pkgname}.desktop"
+ install -Dm644 README.md "$pkgdir/usr/share/licenses/${pkgname}/LICENSE"
}
-