aboutsummaryrefslogtreecommitdiffstats
path: root/main/quvi/APKBUILD
blob: 98100dc92605149fb9a5494a360718027eb14ebe (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
# Contributor: Natanael Copa <ncopa@alpinelinux.org>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=quvi
pkgver=0.9.5
pkgrel=0
pkgdesc="Command line tool for parsing video download links"
url="http://quvi.sourceforge.net/"
arch="all"
license="LGPLv2+"
depends=
depends_dev="libquvi-dev zlib-dev openssl-dev"
makedepends="$depends_dev glib-dev"
install=""
subpackages="$pkgname-doc"
source="http://downloads.sourceforge.net/project/quvi/${pkgver%.*}/quvi/quvi-$pkgver.tar.xz"

_builddir="$srcdir"/quvi-$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
	update_config_sub || return 1
}

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="baa1d7b25e9fd173e952e27d4aa4b933  quvi-0.9.5.tar.xz"
sha256sums="cb3918aad990b9bc49828a5071159646247199a63de0dd4c706adc5c8cd0a2c0  quvi-0.9.5.tar.xz"
sha512sums="ef50160b7f2b6b8c9049eb995cb26da3100b10e7af8206d98d2e128cde300ceb05a24dded06d7d49c0e691fcc2de5a4c5c9e9f439d40ca52cd0a3a24330c6d79  quvi-0.9.5.tar.xz"