summaryrefslogtreecommitdiffstats
path: root/main/dvgrab/APKBUILD
blob: afe717634d055153902a7355e88cec917ad58fce (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
# Contributor: Natanael Copa <ncopa@alpinelinux.org>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=dvgrab
pkgver=3.5
pkgrel=2
pkgdesc="Utility to capture video from a DV camera"
url="http://www.kinodv.org/"
arch="all"
license="GPLv2+"
depends=
makedepends="libraw1394-dev libavc1394-dev libdv-dev libiec61883-dev
	libjpeg-turbo-dev"
install=""
subpackages="$pkgname-doc"
source="http://prdownloads.sourceforge.net/kino/dvgrab-$pkgver.tar.gz
	musl-fixes.patch
	"

_builddir="$srcdir"/dvgrab-$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 \
		--build=$CBUILD \
		--host=$CHOST \
		--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="b39a242ce63e80fc347ab59931f75649  dvgrab-3.5.tar.gz
363ed7fe045422e4e7001e19ae2a7f6c  musl-fixes.patch"
sha256sums="5910183429d300221783d6054ff5add15bb2ae49ae33272d723a314bc2ce0af9  dvgrab-3.5.tar.gz
05ef1b0e6d9e23ab0a5a2106840f97fd0d9541e6bbecc0731ef13d33f4a98a16  musl-fixes.patch"
sha512sums="7d9cae1661d27dbef1d0dcdf18966a0ab386d936803ff7d071a18e0303fca45631c9b27187a413adfa4391c395e5909e3b8dc5c543d529e7805550f1a3ee6735  dvgrab-3.5.tar.gz
c69220fa133812063fc6e237a1c15215b7163845d8f9b0e0aba589a86b875f194d2a6899f44449c3e209415ea94d14a13eeff23014ddda0e8a496a6973a0e21b  musl-fixes.patch"