Commit 0fea6d9c authored by Natanael Copa's avatar Natanael Copa
Browse files

main/sxiv: upgrade to 1.3.1

parent b7a0694e
# Maintainer: Eivind Uggedal <eivind@uggedal.com>
pkgname=sxiv
pkgver=1.2
pkgrel=1
pkgver=1.3.1
pkgrel=0
pkgdesc="Simple X Image Viewer"
url="https://github.com/muennich/sxiv"
arch="all"
license="GPL2"
depends=""
depends_dev=""
makedepends="imlib2-dev giflib-dev"
makedepends="imlib2-dev giflib-dev libexif-dev"
install=""
subpackages="$pkgname-doc"
source="$pkgname-$pkgver.tar.gz::$url/archive/v$pkgver.tar.gz
sxiv-giflib5.1.patch
"
_builddir="$srcdir/$pkgname-$pkgver"
......@@ -38,9 +37,6 @@ package() {
make PREFIX="$pkgdir"/usr install
}
md5sums="9b79d3c70693d9abbc66295cf6f281a0 sxiv-1.2.tar.gz
c3cfa504ef7352b52f96682e8ba845ba sxiv-giflib5.1.patch"
sha256sums="ac76b69e4889137f2ce531ec4dc5ce9c4916bc575a30d351ebc7b0a684ef8cf3 sxiv-1.2.tar.gz
385478f42f2dbe142590dcd3f20b5ebb8a7ada169c35036502c46dd25b5cab88 sxiv-giflib5.1.patch"
sha512sums="6058a8f89c540083549d91fe469f8f9d1a4acf60a19dc1d7115b7fe9a807143c9f8c0e8320e7695f7b6afe8d9ae040e9daaa09a976219228afb929133c8a6957 sxiv-1.2.tar.gz
ffdef5c9118575e9c464010039b94c3a7c86b4321140091ef364c1990cb25c8fa587667ebd0064ceb07f4d647c33e6a9d1caf739a27d0a866917d48603d6986f sxiv-giflib5.1.patch"
md5sums="3255d0d47e0a4cddd752ec03ee4bddaf sxiv-1.3.1.tar.gz"
sha256sums="9a30a1b036e1c17212128554709da3f2d65d3beaef2e0a73097af5e35cf11d0e sxiv-1.3.1.tar.gz"
sha512sums="a3ffeea7fb85188c844ec8fabf8a162aa6c4f695674b44db7c60a4608956051ff5963cb85aba86cd4f16ab63a0cf84cd2309c325e22075537175bf1b65327b77 sxiv-1.3.1.tar.gz"
From b901236261dc717dc08ed10f63e2d5cd3f3031f8 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Bart=C5=82omiej=20Piotrowski?= <b@bpiotrowski.pl>
Date: Tue, 27 May 2014 11:46:06 +0200
Subject: [PATCH] Fix build with giflib >= 5.1.0.
---
image.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/image.c b/image.c
index e62a69f..7eec544 100644
--- a/image.c
+++ b/image.c
@@ -278,7 +278,11 @@ bool img_load_gif(img_t *img, const fileinfo_t *file)
}
} while (rec != TERMINATE_RECORD_TYPE);
+#if defined(GIFLIB_MAJOR) && GIFLIB_MAJOR >= 5 && GIFLIB_MINOR >= 1
+ DGifCloseFile(gif, NULL);
+#else
DGifCloseFile(gif);
+#endif
if (err && !file->loaded)
warn("corrupted gif file: %s", file->name);
--
1.9.3
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment