aboutsummaryrefslogtreecommitdiffstats
path: root/testing/guvcview/APKBUILD
blob: 9a6c5872495289e276527b92db27104a232689e6 (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
46
47
# Contributor: Natanael Copa <ncopa@alpinelinux.org>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=guvcview
pkgver=1.7.3
pkgrel=1
pkgdesc="Webcam viewer"
url="http://guvcview.sourceforge.net/"
arch="all"
license="GPLv3"
depends=
depends_dev=
makedepends="gtk+3.0-dev udev-dev sdl-dev portaudio-dev ffmpeg-dev
	v4l-utils-dev libusb-dev"
install=
subpackages="$pkgname-doc $pkgname-lang"
source="http://downloads.sourceforge.net/project/guvcview/source/guvcview-src-$pkgver.tar.gz"

_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 \
		|| return 1
	make || return 1
}

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

md5sums="f9c510ed9908a8d20ca27099aca948a7  guvcview-src-1.7.3.tar.gz"
sha256sums="d98612fa7bb6a5a408b26755bcefdee9c5d505e5dc0e2a45a7f316652d96da99  guvcview-src-1.7.3.tar.gz"
sha512sums="36ec97e127043d9548bed2f915cd45611ba751cee3c38119382911d0c037944b0fb0abd2486155eade39c9b14c7ef3657c9b4bde1cc62666004fbf77de58db91  guvcview-src-1.7.3.tar.gz"