Commit 07c9b434 authored by abveritas's avatar abveritas

Adding mc

parent 1c347738
#
# Chakra Packages for Chakra, part of chakra-project.org
#
# maintainer (i686): Phil Miller <philm[at]chakra-project[dog]org>
# maintainer (x86_64): Manuel Tortosa <manutortosa[at]chakra-project[dot]org>
# include global config
source ../_buildscripts/${current_repo}-${_arch}-cfg.conf
pkgname=mc
pkgver=4.7.3
pkgrel=1
pkgdesc="A filemanager/shell that emulates Norton Commander"
arch=('i686' 'x86_64')
url="http://www.ibiblio.org/mc/"
license=('GPL')
depends=('e2fsprogs' 'glib2' 'pcre' 'gpm>=1.20.4' 'slang')
makedepends=('libxt' 'libx11')
optdepends=('p7zip: support for 7zip archives')
provides=('mcedit-pkgbuild-syntax')
conflicts=('mc-utf8')
replaces=('mc-utf8')
options=('!emptydirs' '!makeflags')
source=(http://www.midnight-commander.org/downloads/${pkgname}-${pkgver}.tar.bz2)
md5sums=('42eb806d733b11d0d13ff7ee5fd1a03c')
build() {
cd ${srcdir}/${pkgname}-${pkgver}
./configure \
--prefix=/usr --sysconfdir=/etc --mandir=/usr/share/man \
--enable-background --enable-charset --enable-largefile \
--with-edit --with-gpm-mouse --with-mmap --with-samba \
--with-screen=slang --with-subshell --with-vfs --with-x \
--without-debug --without-gnome --without-included-gettext \
--libexecdir=/usr/lib
make || return 1
}
package() {
cd ${srcdir}/${pkgname}-${pkgver}
make DESTDIR=${pkgdir} install
# Fix FS#15177
sed -i 's|op_has_zipinfo = 0|op_has_zipinfo = 1|' \
${pkgdir}/usr/lib/mc/extfs.d/uzip
# Fix FS#18312
rm ${pkgdir}/usr/lib/mc/extfs.d/u7z
}
--- /lib/tty/tty-internal.h
+++ /lib/tty/tty-internal.h
@@ -8,4 +8,15 @@
#include "lib/global.h" /* include <glib.h> */
+
+/* Taken from S-Lang's slutty.c */
+#ifdef ultrix /* Ultrix gets _POSIX_VDISABLE wrong! */
+# define NULL_VALUE -1
+#else
+# ifdef _POSIX_VDISABLE
+# define NULL_VALUE _POSIX_VDISABLE
+# else
+# define NULL_VALUE 255
+# endif
+#endif
/* If true lines are shown by spaces */
--- /lib/tty/tty-ncurses.c
+++ /lib/tty/tty-ncurses.c
@@ -63,4 +63,5 @@
/*** file scope macro definitions **************************************/
+
#if defined(_AIX) && !defined(CTRL)
# define CTRL(x) ((x) & 0x1f)
@@ -159,4 +160,6 @@
/* use Ctrl-g to generate SIGINT */
cur_term->Nttyb.c_cc[VINTR] = CTRL ('g'); /* ^g */
+ /* disable SIGQUIT to allow use Ctrl-\ key */
+ cur_term->Nttyb.c_cc[VQUIT] = NULL_VALUE;
tcsetattr (cur_term->Filedes, TCSANOW, &cur_term->Nttyb);
--- /misc/syntax/Syntax
+++ /misc/syntax/Syntax
@@ -140,5 +140,5 @@
include spec.syntax
-file ..\*\\.repo$ YUM\sRepo File
+file ..\*\\.repo$ YUM\sRepo\sFile
include yum-repo.syntax
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