summaryrefslogtreecommitdiff
path: root/community/dillo
diff options
context:
space:
mode:
Diffstat (limited to 'community/dillo')
-rw-r--r--community/dillo/PKGBUILD34
-rw-r--r--community/dillo/libpng14.patch12
2 files changed, 46 insertions, 0 deletions
diff --git a/community/dillo/PKGBUILD b/community/dillo/PKGBUILD
new file mode 100644
index 000000000..3860fdd5a
--- /dev/null
+++ b/community/dillo/PKGBUILD
@@ -0,0 +1,34 @@
+# $Id: PKGBUILD 34653 2010-12-11 03:21:47Z tdziedzic $
+# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
+# Maintainer: dorphell <dorphell@archlinux.org>
+
+pkgname=dillo
+pkgver=2.2
+pkgrel=3
+pkgdesc="A small, fast graphical web browser built on FLTK"
+arch=(i686 x86_64)
+url="http://www.dillo.org"
+license=('GPL')
+depends=('fltk2' 'libjpeg' 'perl' 'openssl' 'libpng' 'gcc-libs' 'libxcursor'
+ 'libxi' 'libxinerama')
+backup=(etc/dillo/{dillorc,dpidrc})
+source=(http://www.dillo.org/download/$pkgname-$pkgver.tar.bz2
+ libpng14.patch)
+md5sums=('f8bcd62093f178bed81e46cc54e73f42'
+ '5336bd3a3b4698c5250ce59e4f2ff91a')
+
+build() {
+ cd "$srcdir/$pkgname-$pkgver"
+
+ patch -Np1 -i "$srcdir/libpng14.patch"
+
+ ./configure --prefix=/usr --sysconfdir=/etc --enable-cookies --enable-dlgui \
+ --enable-ssl
+ make
+}
+
+package() {
+ cd "$srcdir/$pkgname-$pkgver"
+
+ make DESTDIR="$pkgdir" install
+}
diff --git a/community/dillo/libpng14.patch b/community/dillo/libpng14.patch
new file mode 100644
index 000000000..10c45351e
--- /dev/null
+++ b/community/dillo/libpng14.patch
@@ -0,0 +1,12 @@
+diff -upr dillo-2.1.1.orig/src/png.c dillo-2.1.1/src/png.c
+--- dillo-2.1.1.orig/src/png.c 2010-01-23 04:09:50.000000000 +0200
++++ dillo-2.1.1/src/png.c 2010-01-23 04:12:34.000000000 +0200
+@@ -345,7 +345,7 @@ static void Png_write(DilloPng *png, voi
+ return; /* need MORE data */
+ }
+ /* check the image signature - DON'T update ipbufstart! */
+- if (!png_check_sig(png->ipbuf, DATASIZE)) {
++ if (png_sig_cmp(png->ipbuf, 0, DATASIZE)) {
+ /* you lied to me about it being a PNG image */
+ MSG_WARN("\"%s\" is not a PNG file.\n", URL_STR(png->url));
+ png->state = IS_finished;