gpwebcam-git

LOW
maintainer darko 0 votes scanned 2026-10-20 11:27:57.544889
View on AUR
Why flagged

Uploaded within the last 14 days with 2 or fewer community votes — little peer review so far.

Triggered rules

Low Few votes, recently uploaded zero_votes_recent

Uploaded within the last 14 days with 2 or fewer community votes — little peer review so far.

PKGBUILD

1# Maintainer: Darko Demić <mail at darkodemic dot com>
2#
3# AUR package gpwebcam-git: gpwebcam built from the newest commit on main.
4# Unlike gpwebcam and gpwebcam-bin, which GoReleaser pushes with every
5# release, this file is pushed to the AUR by hand, only when it changes.
6# Keep its dependencies and installed files in step with the AUR entries
7# in .goreleaser.yaml.
8
9pkgname=gpwebcam-git
10pkgver=0.3.1.r1.g513ae03
11pkgrel=1
12pkgdesc='Use a GoPro connected over USB as a Linux webcam (latest commit)'
13arch=('aarch64' 'x86_64')
14url='https://github.com/darkodemic/gpwebcam'
15license=('Apache-2.0')
16depends=('ffmpeg' 'hicolor-icon-theme')
17makedepends=('git' 'go')
18optdepends=('v4l2loopback-dkms: the loopback device that applications read'
19 'libnotify: desktop notifications')
20provides=('gpwebcam')
21conflicts=('gpwebcam' 'gpwebcam-bin')
22install=gpwebcam.install
23source=('git+https://github.com/darkodemic/gpwebcam.git')
24sha256sums=('SKIP')
25
26pkgver() {
27 cd gpwebcam
28 git describe --long --tags --abbrev=7 | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
29}
30
31prepare() {
32 cd gpwebcam
33 # The module cache stays in the build directory and writable, so
34 # makepkg can clean it up.
35 export GOPATH="${srcdir}/gopath"
36 export GOFLAGS="-mod=readonly -modcacherw"
37 go mod download
38}
39
40build() {
41 cd gpwebcam
42 export GOPATH="${srcdir}/gopath"
43 export CGO_CPPFLAGS="${CPPFLAGS}"
44 export CGO_CFLAGS="${CFLAGS}"
45 export CGO_CXXFLAGS="${CXXFLAGS}"
46 export CGO_LDFLAGS="${LDFLAGS}"
47 export GOFLAGS="-buildmode=pie -trimpath -mod=readonly -modcacherw"
48 go build -ldflags "-linkmode=external -X main.version=${pkgver}" -o gpwebcam ./cmd/gpwebcam
49}
50
51package() {
52 cd gpwebcam
53 install -Dm755 gpwebcam "${pkgdir}/usr/bin/gpwebcam"
54 install -Dm644 packaging/systemd/gpwebcam.service "${pkgdir}/usr/lib/systemd/user/gpwebcam.service"
55 install -Dm644 packaging/modules-load.d/gpwebcam.conf "${pkgdir}/usr/lib/modules-load.d/gpwebcam.conf"
56 install -Dm644 packaging/modprobe.d/99-gpwebcam.conf "${pkgdir}/usr/lib/modprobe.d/99-gpwebcam.conf"
57 install -Dm644 packaging/desktop/gpwebcam.desktop "${pkgdir}/usr/share/applications/gpwebcam.desktop"
58 install -Dm644 packaging/icons/gpwebcam.svg "${pkgdir}/usr/share/icons/hicolor/scalable/apps/gpwebcam.svg"
59 install -Dm644 packaging/man/gpwebcam.1 "${pkgdir}/usr/share/man/man1/gpwebcam.1"
60 install -Dm644 README.md "${pkgdir}/usr/share/doc/gpwebcam/README.md"
61 install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/gpwebcam/LICENSE"
62}
63

Scan history

Scanned at (UTC)SeverityRules
2026-10-20 11:27:57 Low 1

Report a package

Reports go to the AURWatch maintainer (one person) and are read by hand. No login required.

0 / 4000
Your suggestion