summaryrefslogtreecommitdiff
path: root/community/vifm
diff options
context:
space:
mode:
authorParabola <dev@list.parabolagnulinux.org>2011-04-05 14:26:38 +0000
committerParabola <dev@list.parabolagnulinux.org>2011-04-05 14:26:38 +0000
commit415856bdd4f48ab4f2732996f0bae58595092bbe (patch)
treeede2018b591f6dfb477fe9341ba17b9bc000fab9 /community/vifm
Tue Apr 5 14:26:38 UTC 2011
Diffstat (limited to 'community/vifm')
-rw-r--r--community/vifm/ChangeLog2
-rw-r--r--community/vifm/PKGBUILD43
-rw-r--r--community/vifm/ncurses58.patch140
3 files changed, 185 insertions, 0 deletions
diff --git a/community/vifm/ChangeLog b/community/vifm/ChangeLog
new file mode 100644
index 000000000..cca32deba
--- /dev/null
+++ b/community/vifm/ChangeLog
@@ -0,0 +1,2 @@
+2010-02-15 Jaroslav Lichtblau <dragonlord@aur.archlinux.org>
+ * Moved to [community] 0.5-2 (212 votes in AUR)
diff --git a/community/vifm/PKGBUILD b/community/vifm/PKGBUILD
new file mode 100644
index 000000000..abf5a134b
--- /dev/null
+++ b/community/vifm/PKGBUILD
@@ -0,0 +1,43 @@
+# $Id: PKGBUILD 40937 2011-03-01 23:43:56Z jelle $
+# Maintainer: Jaroslav Lichtblau <dragonlord@aur.archlinux.org>
+
+pkgname=vifm
+pkgver=0.5
+pkgrel=3
+pkgdesc="Ncurses based file manager with vi like keybindings"
+arch=('i686' 'x86_64')
+url="http://vifm.sourceforge.net/"
+license=('GPL')
+depends=('ncurses')
+source=(http://downloads.sourceforge.net/$pkgname/$pkgname-$pkgver.tar.bz2 ncurses58.patch)
+options=(!strip)
+build() {
+ cd ${srcdir}/$pkgname-$pkgver
+ patch -Np1 -i $srcdir/ncurses58.patch
+
+ export CFLAGS="$CFLAGS -g"
+ export CXXFLAGS="$CXXFLAGS -g"
+ ./configure --prefix=/usr --enable-debug
+ make
+}
+package()
+{
+ cd ${srcdir}/$pkgname-$pkgver
+ make DESTDIR=${pkgdir} install
+}
+md5sums=('76818f02d6acd4997d1f41db932438aa'
+ '1a525adddc0424c23ed9a4aa31c0164a')
+md5sums=('76818f02d6acd4997d1f41db932438aa'
+ '4b2007548083f3dc828074706ce16024')
+md5sums=('76818f02d6acd4997d1f41db932438aa'
+ 'd2575f3ec9ead5ee0561b5ceaa23a35a')
+md5sums=('76818f02d6acd4997d1f41db932438aa'
+ '38cbc3a963346babae2f6c6edb7dec3b')
+md5sums=('76818f02d6acd4997d1f41db932438aa'
+ 'd56abb4654d344c1997eee0f5e2d5133')
+md5sums=('76818f02d6acd4997d1f41db932438aa'
+ '97837d528f4287b3f01d370a823b32d4')
+md5sums=('76818f02d6acd4997d1f41db932438aa'
+ '97f633c0afa003de34ba17b9eb68112d')
+md5sums=('76818f02d6acd4997d1f41db932438aa'
+ '49a1e1f299afd18e336cf85dcd5d67e2')
diff --git a/community/vifm/ncurses58.patch b/community/vifm/ncurses58.patch
new file mode 100644
index 000000000..68e85ca2f
--- /dev/null
+++ b/community/vifm/ncurses58.patch
@@ -0,0 +1,140 @@
+diff -aur vifm-0.5/src/keys.c vifm-0.5-new//src/keys.c
+--- vifm-0.5/src/keys.c 2009-05-05 17:49:30.000000000 -0700
++++ vifm-0.5-new//src/keys.c 2011-03-01 14:13:30.443352349 -0800
+@@ -721,7 +721,6 @@
+ redrawwin(stat_win);
+ redrawwin(status_bar);
+ redrawwin(pos_win);
+- redrawwin(lwin.title);
+ redrawwin(lwin.win);
+ redrawwin(num_win);
+ redrawwin(rborder);
+@@ -740,7 +739,6 @@
+ touchwin(num_win);
+ touchwin(rborder);
+
+- redrawwin(rwin.title);
+ redrawwin(rwin.win);
+ redrawwin(lborder);
+ redrawwin(stat_win);
+@@ -768,10 +766,8 @@
+ touchwin(num_win);
+ touchwin(rborder);
+
+- redrawwin(lwin.title);
+ redrawwin(lwin.win);
+ redrawwin(mborder);
+- redrawwin(rwin.title);
+ redrawwin(rwin.win);
+ redrawwin(lborder);
+ redrawwin(stat_win);
+diff -aur vifm-0.5/src/ui.c vifm-0.5-new//src/ui.c
+--- vifm-0.5/src/ui.c 2009-08-27 07:07:03.000000000 -0700
++++ vifm-0.5-new//src/ui.c 2011-03-01 14:09:59.646687287 -0800
+@@ -158,32 +158,32 @@
+
+ werase(stdscr);
+
+- menu_win = newwin(screen_y - 1, screen_x , 0, 0);
++ menu_win = newwin(screen_y - 1, screen_x , 1, 1);
+ wbkgdset(menu_win, COLOR_PAIR(WIN_COLOR));
+ werase(menu_win);
+
+- sort_win = newwin(NUM_SORT_OPTIONS + 3, 30, (screen_y -12)/2, (screen_x -30)/2);
++ sort_win = newwin(NUM_SORT_OPTIONS + 3, 30, (screen_y -12)/2 > 0 ? (screen_y -12/2) :1, (screen_x -30)/2 > 0 ? (screen_x -30)/2: 1);
+ wbkgdset(sort_win, COLOR_PAIR(WIN_COLOR));
+ werase(sort_win);
+
+- change_win = newwin(20, 30, (screen_y -20)/2, (screen_x -30)/2);
++ change_win = newwin(20, 30, ((screen_y -20)/2 > 0 ? (screen_y -20)/2 : 1), (screen_x -30)/2 > 0 ? (screen_x -30/2) : 1 );
+ wbkgdset(change_win, COLOR_PAIR(WIN_COLOR));
+ werase(change_win);
+
+- error_win = newwin(10, screen_x -2, (screen_y -10)/2, 1);
++ error_win = newwin(10, screen_x -2, (screen_y -10)/2 > 0 ? (screen_y -10)/2 : 1, 1);
+ wbkgdset(error_win, COLOR_PAIR(WIN_COLOR));
+ werase(error_win);
+
+- lborder = newwin(screen_y - 2, 1, 0, 0);
++ lborder = newwin(screen_y - 2, 1, 1, 1);
+
+ wbkgdset(lborder, COLOR_PAIR(BORDER_COLOR));
+
+ werase(lborder);
+
+ if (curr_stats.number_of_windows == 1)
+- lwin.title = newwin(0, screen_x -2, 0, 1);
++ lwin.title = newwin(0, screen_x -2, 1, 1);
+ else
+- lwin.title = newwin(0, screen_x/2 -1, 0, 1);
++ lwin.title = newwin(0, screen_x/2 -1, 1, 1);
+
+ wattrset(lwin.title, A_BOLD);
+ wbkgdset(lwin.title, COLOR_PAIR(BORDER_COLOR));
+@@ -204,16 +204,16 @@
+ lwin.window_rows = y -1;
+ lwin.window_width = x -1;
+
+- mborder = newwin(screen_y, 2, 0, screen_x/2 -1);
++ mborder = newwin(screen_y, 2, 1, screen_x/2 -1 > 0 ? screen_x/2 -1 : 1);
+
+ wbkgdset(mborder, COLOR_PAIR(BORDER_COLOR));
+
+ werase(mborder);
+
+ if (curr_stats.number_of_windows == 1)
+- rwin.title = newwin(0, screen_x -2 , 0, 1);
++ rwin.title = newwin(0, screen_x -2 , 1, 1);
+ else
+- rwin.title = newwin(1, screen_x/2 -1 , 0, screen_x/2 +1);
++ rwin.title = newwin(1, screen_x/2 -1 , 1, screen_x/2 +1 > 0 ? screen_x/2 +1 :1);
+
+ wbkgdset(rwin.title, COLOR_PAIR(BORDER_COLOR));
+ wattrset(rwin.title, A_BOLD);
+@@ -224,7 +224,7 @@
+ if (curr_stats.number_of_windows == 1)
+ rwin.win = newwin(screen_y - 3, screen_x -2 , 1, 1);
+ else
+- rwin.win = newwin(screen_y - 3, screen_x/2 -2 , 1, screen_x/2 +1);
++ rwin.win = newwin(screen_y - 3, screen_x/2 -2 , 1, screen_x/2 +1 > 0 ? screen_x/2 +1 : 1);
+
+ keypad(rwin.win, TRUE);
+ wattrset(rwin.win, A_BOLD);
+@@ -235,32 +235,32 @@
+ rwin.window_rows = y - 1;
+ rwin.window_width = x -1;
+
+- rborder = newwin(screen_y - 2, 1, 0, screen_x -1);
++ rborder = newwin(screen_y - 2, 1, 1, screen_x -1 > 0 ? screen_x-1 : 1);
+
+ wbkgdset(rborder, COLOR_PAIR(BORDER_COLOR));
+
+ werase(rborder);
+
+- stat_win = newwin(1, screen_x, screen_y -2, 0);
++ stat_win = newwin(1, screen_x, screen_y -2 > 0 ? screen_y -2 : 1, 1);
+
+ wbkgdset(stat_win, COLOR_PAIR(BORDER_COLOR));
+
+ werase(stat_win);
+
+- status_bar = newwin(1, screen_x - 19, screen_y -1, 0);
++ status_bar = newwin(1, screen_x - 19, screen_y -1 > 0 ? screen_y -2: 1, 1);
+ keypad(status_bar, TRUE);
+ wattrset(status_bar, A_BOLD);
+ wattron(status_bar, A_BOLD);
+ wbkgdset(status_bar, COLOR_PAIR(STATUS_BAR_COLOR));
+ werase(status_bar);
+
+- pos_win = newwin(1, 13, screen_y - 1, screen_x -13);
++ pos_win = newwin(1, 13, screen_y - 1 > 0 ? screen_y -1 : 1, screen_x -13 > 0 ? screen_x -13 : 1);
+ wattrset(pos_win, A_BOLD);
+ wattron(pos_win, A_BOLD);
+ wbkgdset(pos_win, COLOR_PAIR(STATUS_BAR_COLOR));
+ werase(pos_win);
+
+- num_win = newwin(1, 6, screen_y - 1, screen_x -19);
++ num_win = newwin(1, 6, screen_y - 1 > 0 ? screen_y -1 : 1, screen_x -19 > 0 ? screen_x -19 : 1);
+ wattrset(num_win, A_BOLD);
+ wattron(num_win, A_BOLD);
+ wbkgdset(num_win, COLOR_PAIR(STATUS_BAR_COLOR));