aboutsummaryrefslogtreecommitdiffstats
path: root/community/guvcview/APKBUILD
blob: d75286ff6bf2c3a4985a80744d2c4552214d3389 (plain) (blame)
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
# Contributor: Natanael Copa <ncopa@alpinelinux.org>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=guvcview
pkgver=2.0.5
pkgrel=2
pkgdesc="Webcam viewer"
url="http://guvcview.sourceforge.net/"
arch="all"
license="GPL-3.0"
makedepends="gtk+3.0-dev eudev-dev sdl-dev portaudio-dev ffmpeg-dev gsl-dev
	v4l-utils-dev libusb-dev linux-headers intltool"
subpackages="$pkgname-doc $pkgname-lang"
# ffmpeg4.patch courtesy of gentoo
source="https://downloads.sourceforge.net/project/guvcview/source/guvcview-src-$pkgver.tar.gz
	0001-fix-building-with-musl-libc.patch
	ffmpeg4.patch
	"
options="!check"

builddir="$srcdir"/guvcview-src-$pkgver

build() {
	cd "$builddir"
	./configure --prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--infodir=/usr/share/info \
		--localstatedir=/var \
		--disable-sdl2
	make
}

package() {
	cd "$builddir"
	make DESTDIR="$pkgdir" install
}

sha512sums="b4a1216ab2effbd0022d5ba0ce266ac06a781e453d3dbedfe29b654864d3a26fe1e8b68245d76eff854281d42f1871a8a82b06f783b5115e94ec1c111aac05eb  guvcview-src-2.0.5.tar.gz
9ab9575bc41acc79581da8d43ef52fc9cf2bf46ef7df97951202e47f5516c38b42ebb715a4e8d6010ac9875c2c9c8cb1912d39282d4a632123424ab516632c98  0001-fix-building-with-musl-libc.patch
aefec351851d31968a68b8cb6e3c95ae06ef025bb4a0988555146423daa4d3c84174d03d99897fe0588177efe0222aa57e42b87e38f4230425f3f714ef33526a  ffmpeg4.patch"