summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Rosenstrauch2018-11-25 21:05:19 -0500
committerDavid Rosenstrauch2018-11-25 21:05:19 -0500
commitc6098b080739acd20739a1ba65a391eb24f9f59c (patch)
tree7ded311151698eb8fc2bbf4d0d4ffb0ead5df769
parent07610ed13a7b66631e1a96281e52588dd2009cff (diff)
downloadaur-c6098b080739acd20739a1ba65a391eb24f9f59c.tar.gz
Upgrade to v1.1.14
-rw-r--r--.SRCINFO8
-rw-r--r--PKGBUILD13
-rw-r--r--statx.patch36
3 files changed, 51 insertions, 6 deletions
diff --git a/.SRCINFO b/.SRCINFO
index c83906fea0f..296ef253a16 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,6 +1,6 @@
pkgbase = gtk-gnutella
pkgdesc = A Gnutella server/client
- pkgver = 1.1.13
+ pkgver = 1.1.14
pkgrel = 1
url = http://gtk-gnutella.sourceforge.net/
install = gtk-gnutella.install
@@ -11,8 +11,10 @@ pkgbase = gtk-gnutella
depends = gtk2
depends = glib2
depends = desktop-file-utils
- source = http://downloads.sourceforge.net/project/gtk-gnutella/gtk-gnutella/1.1.13/gtk-gnutella-1.1.13.tar.xz
- md5sums = 828733613d7134fefef842b8eeb36f1e
+ source = http://downloads.sourceforge.net/project/gtk-gnutella/gtk-gnutella/1.1.14/gtk-gnutella-1.1.14.tar.xz
+ source = statx.patch
+ md5sums = 75414544a8a7bacd5c75b207e235de73
+ md5sums = 439c8fc20775eee946199aafccae56f7
pkgname = gtk-gnutella
diff --git a/PKGBUILD b/PKGBUILD
index 4f14e76064c..c63e8c11e32 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -5,7 +5,7 @@
# Contributor: Daniel J Griffiths <ghost1227@archlinux.us>
pkgname=gtk-gnutella
-pkgver=1.1.13
+pkgver=1.1.14
pkgrel=1
pkgdesc="A Gnutella server/client"
arch=('i686' 'x86_64')
@@ -14,11 +14,18 @@ license=('GPL')
makedepends=('pkg-config')
depends=('gtk2' 'glib2' 'desktop-file-utils')
install="$pkgname.install"
-source=("http://downloads.sourceforge.net/project/$pkgname/$pkgname/$pkgver/$pkgname-$pkgver.tar.xz")
-md5sums=('828733613d7134fefef842b8eeb36f1e')
+source=(
+ "http://downloads.sourceforge.net/project/$pkgname/$pkgname/$pkgver/$pkgname-$pkgver.tar.xz"
+ "statx.patch"
+)
+md5sums=(
+ '75414544a8a7bacd5c75b207e235de73'
+ '439c8fc20775eee946199aafccae56f7'
+)
build() {
cd "$srcdir/$pkgname-$pkgver"
+ patch -p1 < ../statx.patch
./build.sh --prefix=/usr
}
diff --git a/statx.patch b/statx.patch
new file mode 100644
index 00000000000..afc4d6a8864
--- /dev/null
+++ b/statx.patch
@@ -0,0 +1,36 @@
+diff -uar a/src/lib/stats.c b/src/lib/stats.c
+--- a/src/lib/stats.c 2018-10-04 15:42:02.000000000 -0400
++++ b/src/lib/stats.c 2018-11-25 20:56:18.199210948 -0500
+@@ -50,7 +50,7 @@
+ /**
+ * A one-dimension container (x).
+ */
+-struct statx {
++struct statx_gnutella {
+ enum statx_magic magic; /**< Magic number */
+ elist_t data; /**< Data points */
+ long n; /**< Amount of data points */
+@@ -60,7 +60,7 @@
+ };
+
+ static inline void
+-statx_check(const struct statx * const sx)
++statx_check(const struct statx_gnutella * const sx)
+ {
+ g_assert(sx != NULL);
+ g_assert(STATX_MAGIC == sx->magic);
+diff -uar a/src/lib/stats.h b/src/lib/stats.h
+--- a/src/lib/stats.h 2018-10-04 15:42:02.000000000 -0400
++++ b/src/lib/stats.h 2018-11-25 20:55:37.345631532 -0500
+@@ -40,9 +40,9 @@
+ * One dimension statistics.
+ */
+
+-struct statx;
++struct statx_gnutella;
+
+-typedef struct statx statx_t;
++typedef struct statx_gnutella statx_t;
+
+ statx_t *statx_make(void);
+ statx_t *statx_make_nodata(void);