summaryrefslogtreecommitdiffstats
path: root/main/guvcview/APKBUILD
blob: 78588905c6808cff33ed2ffa2eeb78d2af159a45 (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
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.1
pkgrel=0
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 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
	configure-cppflags.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="54e608b8a2c13d96f546197117d758f4  guvcview-src-2.0.1.tar.gz
6d30ec659cd71d34c2d30225e730cff8  0001-fix-building-with-musl-libc.patch
a9ca747ba7b29eb77753c980eeca18d1  configure-cppflags.patch"
sha256sums="dffb86c01bd2e25216d9fbc0c246342246818036d9f63e0488111d757d9b018d  guvcview-src-2.0.1.tar.gz
a65de3103875251cba9cf9cac5399cbd6fb5a58e550a4f3573f72660e1cec454  0001-fix-building-with-musl-libc.patch
8c0cc2256cf4c84b9b74eef3c3fc324324999587ea9df8ebc6377d0036e5040e  configure-cppflags.patch"
sha512sums="b3877f00f4caf224eac2010f62e1c3d575b94f84cd0a8da7a5f1df6c851384c7a9e356de905ce27e143dc9761137ae1cce146bb4f6c0aa6d270dd53551bce67a  guvcview-src-2.0.1.tar.gz
9ab9575bc41acc79581da8d43ef52fc9cf2bf46ef7df97951202e47f5516c38b42ebb715a4e8d6010ac9875c2c9c8cb1912d39282d4a632123424ab516632c98  0001-fix-building-with-musl-libc.patch
1c97bfba867518ca99606f38a0450389ae01516ecfcd8339f907b01a981f3f2c2b34cac5b264fa2bf7827c29a93a52818f099260f787e42ce19eca150c5cf971  configure-cppflags.patch"