diff options
Diffstat (limited to 'community-testing/fldiff')
-rw-r--r-- | community-testing/fldiff/PKGBUILD | 31 | ||||
-rw-r--r-- | community-testing/fldiff/build-fix.patch | 31 | ||||
-rw-r--r-- | community-testing/fldiff/fldiff.install | 11 |
3 files changed, 73 insertions, 0 deletions
diff --git a/community-testing/fldiff/PKGBUILD b/community-testing/fldiff/PKGBUILD new file mode 100644 index 000000000..ab25a3240 --- /dev/null +++ b/community-testing/fldiff/PKGBUILD @@ -0,0 +1,31 @@ +# $Id: PKGBUILD 51104 2011-07-05 09:00:11Z spupykin $ +# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com> +# Maintainer: kevin <kevin@archlinux.org> +# Contributor: iztok pizorn <pizorn@gmail.com> + +pkgname=fldiff +pkgver=1.1 +pkgrel=6 +pkgdesc="graphical diff program" +arch=(i686 x86_64) +url="http://www.easysw.com/~mike/fldiff/" +license=('GPL') +install=fldiff.install +depends=('diffutils' 'fltk' 'xdg-utils') +source=(http://www.easysw.com/~mike/fldiff/$pkgname-$pkgver-source.tar.gz + build-fix.patch) +md5sums=('12897c92106fb5d665210a2e82f5cf25' + 'ea7258e07544b81561c6d76a41c184e7') + +build() { + cd $srcdir/$pkgname-$pkgver + patch -p1 <$srcdir/build-fix.patch + ./configure --prefix=/usr + make +} + +package() { + cd $srcdir/$pkgname-$pkgver + make BUILDROOT=$pkgdir install install-desktop + mv `find $pkgdir/ -name Development -type d` $startdir/pkg/usr/share/applications +} diff --git a/community-testing/fldiff/build-fix.patch b/community-testing/fldiff/build-fix.patch new file mode 100644 index 000000000..bb3e0245e --- /dev/null +++ b/community-testing/fldiff/build-fix.patch @@ -0,0 +1,31 @@ +Only in fldiff-1.1.my: config.log +Only in fldiff-1.1.my: config.status +Only in fldiff-1.1.my: DiffChooser.o +Only in fldiff-1.1.my: DiffOpenWindow.o +Only in fldiff-1.1.my: DiffView.o +diff -wbBur fldiff-1.1/DiffWindow.cxx fldiff-1.1.my/DiffWindow.cxx +--- fldiff-1.1/DiffWindow.cxx 2006-11-13 21:54:02.000000000 +0300 ++++ fldiff-1.1.my/DiffWindow.cxx 2011-07-05 12:58:38.000000000 +0400 +@@ -1126,11 +1126,11 @@ + DiffWindow::save_prefs() + { + // Save the window prefs for the next run... +- prefs_.set("color", color()); +- prefs_.set("selection_color", selection_color()); ++ prefs_.set("color", (int)color()); ++ prefs_.set("selection_color", (int)selection_color()); + prefs_.set("showlinenum", showlinenum()); + prefs_.set("tabwidth", tabwidth()); +- prefs_.set("textcolor", textcolor()); ++ prefs_.set("textcolor", (int)textcolor()); + prefs_.set("textsize", textsize()); + prefs_.set("ignoreblanks", ignoreblanks()); + } +Only in fldiff-1.1.my: DiffWindow.o +Only in fldiff-1.1.my: FavoritesMenu.o +Only in fldiff-1.1.my: FavoritesWindow.o +Only in fldiff-1.1.my: fldiff +Only in fldiff-1.1.my: fldiff.list +Only in fldiff-1.1.my: fldiff.o +Only in fldiff-1.1.my: Makefile +Only in fldiff-1.1.my: PtProcess.o diff --git a/community-testing/fldiff/fldiff.install b/community-testing/fldiff/fldiff.install new file mode 100644 index 000000000..b95cc069d --- /dev/null +++ b/community-testing/fldiff/fldiff.install @@ -0,0 +1,11 @@ +post_install() { + which xdg-icon-resource 1>/dev/null 2>/dev/null && xdg-icon-resource forceupdate || true +} + +post_upgrade() { + post_install $1 +} + +post_remove() { + which xdg-icon-resource 1>/dev/null 2>/dev/null && xdg-icon-resource forceupdate || true +} |