summaryrefslogtreecommitdiffstats
path: root/main/quvi/APKBUILD
blob: a020f8c12fce0aaaf1d161a6eda5fad7f4cc84f5 (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
# Contributor: Natanael Copa <ncopa@alpinelinux.org>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=quvi
pkgver=0.9.5
pkgrel=1
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
	fix-memcorruption.patch
	"

_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"
	CFLAGS="$CFLAGS -g" \
	./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
5e424b2a18afc00afbd99a81918c702a  fix-memcorruption.patch"
sha256sums="cb3918aad990b9bc49828a5071159646247199a63de0dd4c706adc5c8cd0a2c0  quvi-0.9.5.tar.xz
0be40d52af769e1cffa387c6a77efab099b5b60affb93ff0270a234b95c43222  fix-memcorruption.patch"
sha512sums="ef50160b7f2b6b8c9049eb995cb26da3100b10e7af8206d98d2e128cde300ceb05a24dded06d7d49c0e691fcc2de5a4c5c9e9f439d40ca52cd0a3a24330c6d79  quvi-0.9.5.tar.xz
81984ac85b7346fe448455f16b561d483159843e92fe46803b737f688e5d6c9174c11d90b3071c0d000e9fe95547502bf9461240652da4f792ce5ccca46af794  fix-memcorruption.patch"