aboutsummaryrefslogtreecommitdiffstats
path: root/community/guvcview/APKBUILD
blob: 591a5549f1c76af59b30087900940ef7cf7e2761 (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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
# Contributor: Natanael Copa <ncopa@alpinelinux.org>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=guvcview
pkgver=2.0.4
pkgrel=1
pkgdesc="Webcam viewer"
url="http://guvcview.sourceforge.net/"
arch="all"
license="GPLv3"
depends=
depends_dev=
makedepends="gtk+3.0-dev eudev-dev sdl-dev portaudio-dev ffmpeg-dev gsl-dev
	v4l-utils-dev libusb-dev linux-headers"
install=
subpackages="$pkgname-doc $pkgname-lang"
source="http://downloads.sourceforge.net/project/guvcview/source/guvcview-src-$pkgver.tar.gz
	0001-fix-building-with-musl-libc.patch
	ffmpeg-3.patch
	"

_builddir="$srcdir"/guvcview-src-$pkgver
prepare() {
	local i
	cd "$_builddir"
	for i in $source; do
		case $i in
		*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
		esac
	done
}

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

package() {
	cd "$_builddir"
	make DESTDIR="$pkgdir" install || return 1
}

md5sums="a6d900166ac2bba251a2c09cb602f1fe  guvcview-src-2.0.4.tar.gz
6d30ec659cd71d34c2d30225e730cff8  0001-fix-building-with-musl-libc.patch
9dc6bf4619686d39417d3f5faf08ca99  ffmpeg-3.patch"
sha256sums="670ef45168a9b58d36ac42f09c498db5e56b76b0be25b0a6dc97528569334fa2  guvcview-src-2.0.4.tar.gz
a65de3103875251cba9cf9cac5399cbd6fb5a58e550a4f3573f72660e1cec454  0001-fix-building-with-musl-libc.patch
1f9cc00ca6c18b3b5a7abe03b35a9c2130104cdc2c3ae73dfb8cefced7d1dca9  ffmpeg-3.patch"
sha512sums="9339e9cf7dc5224f1b87bb21e0ad711d9c27f4197d5f758c70edf465eb01c8c9c51542c75d686f0439f9e843a1c14c2f76835e8529b87b35a737fc5ccb01fe0a  guvcview-src-2.0.4.tar.gz
9ab9575bc41acc79581da8d43ef52fc9cf2bf46ef7df97951202e47f5516c38b42ebb715a4e8d6010ac9875c2c9c8cb1912d39282d4a632123424ab516632c98  0001-fix-building-with-musl-libc.patch
793c0057cc3d5cb63333165696a2dbf1d992ecd33541bde186a31bba9eb493609ab8ee186764189a5c753e824810240b182a54aa6b65a42dde400f7192bbce14  ffmpeg-3.patch"