diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2018-10-31 17:56:52 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2018-11-07 16:46:13 +0000 |
commit | d452391d6af2cb8b8bca086cd1474bf896536a39 (patch) | |
tree | b9bb32f56e397eb5d6df22d6400fd4750eb44965 /community/quvi | |
parent | 8495e2fadb8864235a22bf5e257e455866421c2b (diff) | |
download | aports-d452391d6af2cb8b8bca086cd1474bf896536a39.tar.bz2 aports-d452391d6af2cb8b8bca086cd1474bf896536a39.tar.xz |
main/*quvi*: move to community
Diffstat (limited to 'community/quvi')
-rw-r--r-- | community/quvi/APKBUILD | 49 | ||||
-rw-r--r-- | community/quvi/fix-memcorruption.patch | 28 |
2 files changed, 77 insertions, 0 deletions
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). */ |