diff options
Diffstat (limited to 'community')
-rw-r--r-- | community/libquvi-scripts/APKBUILD | 33 | ||||
-rw-r--r-- | community/libquvi/APKBUILD | 51 | ||||
-rw-r--r-- | community/libquvi/fix-redirects.patch | 29 | ||||
-rw-r--r-- | community/quvi/APKBUILD | 49 | ||||
-rw-r--r-- | community/quvi/fix-memcorruption.patch | 28 |
5 files changed, 190 insertions, 0 deletions
diff --git a/community/libquvi-scripts/APKBUILD b/community/libquvi-scripts/APKBUILD new file mode 100644 index 0000000000..935fe9f80f --- /dev/null +++ b/community/libquvi-scripts/APKBUILD @@ -0,0 +1,33 @@ +# Contributor: Natanael Copa <ncopa@alpinelinux.org> +# Maintainer: Natanael Copa <ncopa@alpinelinux.org> +pkgname=libquvi-scripts +pkgver=0.9.20131130 +pkgrel=0 +pkgdesc="scripts for libquvi - the library for parsing video download links" +url="http://quvi.sourceforge.net/" +arch="noarch" +license="LGPL-2.0-or-later" +subpackages="$pkgname-dev $pkgname-doc" +source="https://downloads.sourceforge.net/project/quvi/${pkgver%.*}/$pkgname/$pkgname-$pkgver.tar.xz" +builddir="$srcdir/$pkgname-$pkgver" + +prepare() { + default_prepare || return 1 + update_config_guess +} + +build() { + cd "$builddir" + ./configure --prefix=/usr \ + || return 1 + make || return 1 +} + +package() { + cd "$builddir" + make DESTDIR="$pkgdir" install || return 1 +} + +md5sums="46ddfd887260a515199c2e1ba8c46d8a libquvi-scripts-0.9.20131130.tar.xz" +sha256sums="17f21f9fac10cf60af2741f2c86a8ffd8007aa334d1eb78ff6ece130cb3777e3 libquvi-scripts-0.9.20131130.tar.xz" +sha512sums="97de4cead30dc181da700cbf3a0ad66ee709fef17f449f75cd43e0376a4aa53c7b2174188130aaa34dcc7ddc578581111f3655cb10f4b0c92df2f75d32c72a02 libquvi-scripts-0.9.20131130.tar.xz" diff --git a/community/libquvi/APKBUILD b/community/libquvi/APKBUILD new file mode 100644 index 0000000000..513bb178af --- /dev/null +++ b/community/libquvi/APKBUILD @@ -0,0 +1,51 @@ +# Contributor: Natanael Copa <ncopa@alpinelinux.org> +# Maintainer: Natanael Copa <ncopa@alpinelinux.org> +pkgname=libquvi +pkgver=0.9.4 +pkgrel=3 +pkgdesc="library for parsing video download links" +url="http://quvi.sourceforge.net/" +arch="all" +license="LGPL-2.0-or-later" +depends="libquvi-scripts" +depends_dev="libquvi-scripts-dev curl-dev lua5.1-dev" +makedepends="$depends_dev libproxy-dev glib-dev libgcrypt-dev" +install="" +subpackages="$pkgname-dev $pkgname-doc" +source="https://downloads.sourceforge.net/project/quvi/${pkgver%.*}/libquvi/libquvi-$pkgver.tar.xz + fix-redirects.patch + " + +_builddir="$srcdir"/libquvi-$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 \ + || return 1 + make || return 1 +} + +package() { + cd "$_builddir" + make DESTDIR="$pkgdir" install || return 1 +} + +md5sums="8e3f2134a6b3376934bd884b07dcdac5 libquvi-0.9.4.tar.xz +5afe26b25eebe18d955552c7aafaa81a fix-redirects.patch" +sha256sums="2d3fe28954a68ed97587e7b920ada5095c450105e993ceade85606dadf9a81b2 libquvi-0.9.4.tar.xz +b1367607d46f12c9dae705c9c4a141c2aa8cd04864d740c6cf5284bbd852a0f2 fix-redirects.patch" +sha512sums="287015e370e7b7f98f0f4c3717f5b044c8fcfb8b823c7988cd248e56b5fbbfa1a1aa421fbdafb38d727b79495267ccd4dead71587052117db53f29236268b651 libquvi-0.9.4.tar.xz +1c1152361fc4767ef6411130d2b39681d7e3dcdffe419da78199193902429c7e31075fd2ef3c13309f4d60de66dc821321dc4d83a5d4a136eea625c349754e62 fix-redirects.patch" diff --git a/community/libquvi/fix-redirects.patch b/community/libquvi/fix-redirects.patch new file mode 100644 index 0000000000..d6352947e1 --- /dev/null +++ b/community/libquvi/fix-redirects.patch @@ -0,0 +1,29 @@ +Do not use Effective URL if no redirections happened. This fixes to not +drop 'fragment' part of the URL that some services need to identify the +media to play. + +diff -ru libquvi-0.9.4.orig/src/curl/resolve.c libquvi-0.9.4/src/curl/resolve.c +--- libquvi-0.9.4.orig/src/curl/resolve.c 2013-11-04 14:55:25.000000000 -0200 ++++ libquvi-0.9.4/src/curl/resolve.c 2014-10-20 16:36:38.493630381 -0300 +@@ -61,10 +61,17 @@ + + if (curlcode == CURLE_OK && r->status.resp_code == 200) + { +- gchar *u = NULL; +- curl_easy_getinfo(c, CURLINFO_EFFECTIVE_URL, &u); +- /* Leave comparison for resolve_redirections.lua */ +- g_string_assign(r->url.dst, u); ++ long count = 0; ++ curl_easy_getinfo(c, CURLINFO_REDIRECT_COUNT, &count); ++ if (count > 0) ++ { ++ gchar *u = NULL; ++ curl_easy_getinfo(c, CURLINFO_EFFECTIVE_URL, &u); ++ /* Leave comparison for resolve_redirections.lua */ ++ g_string_assign(r->url.dst, u); ++ } ++ else ++ g_string_assign(r->url.dst, r->url.addr->str); + } + else + { diff --git a/community/quvi/APKBUILD b/community/quvi/APKBUILD new file mode 100644 index 0000000000..144ca402e0 --- /dev/null +++ b/community/quvi/APKBUILD @@ -0,0 +1,49 @@ +# Contributor: Natanael Copa <ncopa@alpinelinux.org> +# Maintainer: Natanael Copa <ncopa@alpinelinux.org> +pkgname=quvi +pkgver=0.9.5 +pkgrel=5 +pkgdesc="Command line tool for parsing video download links" +url="http://quvi.sourceforge.net/" +arch="all" +license="LGPL-2.0-or-later" +depends= +depends_dev="libquvi-dev zlib-dev" +makedepends="$depends_dev glib-dev" +install="" +subpackages="$pkgname-doc" +source="https://downloads.sourceforge.net/project/quvi/${pkgver%.*}/quvi/quvi-$pkgver.tar.xz + fix-memcorruption.patch + " + +builddir="$srcdir"/quvi-$pkgver +prepare() { + default_prepare + update_config_sub +} + +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 + make +} + +package() { + cd "$builddir" + make DESTDIR="$pkgdir" install +} + +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" diff --git a/community/quvi/fix-memcorruption.patch b/community/quvi/fix-memcorruption.patch new file mode 100644 index 0000000000..4ffe254503 --- /dev/null +++ b/community/quvi/fix-memcorruption.patch @@ -0,0 +1,28 @@ +diff -ru quvi-0.9.5.orig/src/util/regex.c quvi-0.9.5/src/util/regex.c +--- quvi-0.9.5.orig/src/util/regex.c 2013-07-16 17:55:23.000000000 -0300 ++++ quvi-0.9.5/src/util/regex.c 2014-12-02 08:41:56.003383594 -0200 +@@ -194,9 +194,8 @@ + g_free(op->sequence); + g_free(op->regex); + g_free(op->mode); +- g_free(op); +- + memset(op, 0, sizeof(struct _lutil_regex_op_s)); ++ g_free(op); + } + + static gchar *_op_m(lutil_regex_op_t op, const gchar *s) +diff -ru quvi-0.9.5.orig/src/util/xchg.c quvi-0.9.5/src/util/xchg.c +--- quvi-0.9.5.orig/src/util/xchg.c 2013-11-10 09:58:30.000000000 -0200 ++++ quvi-0.9.5/src/util/xchg.c 2014-12-02 08:42:55.756717512 -0200 +@@ -260,9 +260,8 @@ + + g_hash_table_destroy(p->htable); + g_regex_unref(p->re); +- g_free(p); +- + memset(p, 0, sizeof(struct _lutil_xchg_seq_s)); ++ g_free(p); + } + + /* Replace the sequences in the given string (g_free the returned string). */ |