1 # $Id: PKGBUILD 119545 2011-04-12 03:04:01Z eric $
2 # Maintainer: Daniel J Griffiths <ghost1227@archlinux.us>
4 pkgname=mc-preserve-attrs
7 pkgdesc="Midnight Commander is a text based filemanager/shell that emulates Norton Commander (always preserve attrs on remote fs) "
9 url="http://www.ibiblio.org/mc/"
11 depends=('e2fsprogs' 'glib2' 'pcre' 'gpm' 'slang')
12 makedepends=('libxt' 'libx11')
13 optdepends=('p7zip: support for 7zip archives')
14 provides=('mcedit-pkgbuild-syntax')
15 conflicts=('mc-utf8' 'mc')
16 replaces=('mc-utf8' 'mc')
17 options=('!emptydirs' '!makeflags')
18 source=("http://www.midnight-commander.org/downloads/mc-${pkgver}.tar.bz2"
20 md5sums=('bdae966244496cd4f6d282d80c9cf3c6'
21 'd9ab8f7239dd9c728edb522f7028a4ca')
24 cd "${srcdir}/mc-${pkgver}"
27 --prefix=/usr --sysconfdir=/etc --mandir=/usr/share/man \
28 --enable-background --enable-charset --enable-largefile \
29 --with-edit --with-gpm-mouse --with-mmap --enable-vfs-smb \
30 --with-screen=slang --with-subshell --with-vfs --with-x \
31 --without-debug --without-gnome --without-included-gettext \
38 cd "${srcdir}/mc-${pkgver}"
40 patch -p0 < ../filegui.c.diff
41 make DESTDIR="${pkgdir}" install
44 sed 's|op_has_zipinfo = 0|op_has_zipinfo = 1|' \
45 -i "${pkgdir}/usr/lib/mc/extfs.d/uzip"
48 rm "${pkgdir}/usr/lib/mc/extfs.d/u7z"
50 sed 's#/usr/bin/env python#/usr/bin/python2#' \
51 -i "${pkgdir}/usr/lib/mc/extfs.d/s3+"