summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 19f1d47cb1dfef6d790b6d657bf932bc92e57fcb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
# Maintainer: Artemii Bigdan <reverse ni.nadgib@metra>
pkgname=fakecam-gui
pkgver=0.0
pkgrel=1
pkgdesc="A fake webcam provider to stream custom video (GUI)"
arch=('i686' 'x86_64')
license=('MIT')
groups=()
depends=(
	'v4l2loopback-dkms'
	'gtk3'
	'polkit'
	'ffmpeg'
)
makedepends=(
	'go'
)
source=(
	"fakecam-gui-v$pkgver.zip::https://github.com/UQuark0/fakecam-gui/archive/v$pkgver.zip"	
)
sha256sums=(
	"205612773dbde6197e32c417f3d008847c6b61f8b3e3436bff2d1ede14822c68"
)

build() {
	cd "$srcdir"

	export CGO_CPPFLAGS="${CPPFLAGS}"
	export CGO_CFLAGS="${CFLAGS}"
	export CGO_CXXFLAGS="${CXXFLAGS}"
	export CGO_LDFLAGS="${LDFLAGS}"
	export GOFLAGS="-buildmode=pie -trimpath -ldflags=-linkmode=external -mod=readonly -modcacherw -v"

	cd "fakecam-gui-$pkgver"
	go build
	cd ".."
}

package() {
	mkdir -p "$pkgdir/usr/bin"
	mv "fakecam-gui-$pkgver/fakecam-gui" "$pkgdir/usr/bin"

	mkdir -p "$pkgdir/usr/share/licenses/$pkgname"
	mv "fakecam-gui-$pkgver/LICENSE.md" "$pkgdir/usr/share/licenses/$pkgname/"
}