updated on Tue Jan 10 04:01:21 UTC 2012
[aur-mirror.git] / mc-preserve-attrs / PKGBUILD
blobe9749549f11ed1ecdc2babe6b9593844174227ed
1 # $Id: PKGBUILD 119545 2011-04-12 03:04:01Z eric $
2 # Maintainer: Daniel J Griffiths <ghost1227@archlinux.us>
4 pkgname=mc-preserve-attrs
5 pkgver=4.7.5.2
6 pkgrel=1
7 pkgdesc="Midnight Commander is a text based filemanager/shell that emulates Norton Commander (always preserve attrs on remote fs) "
8 arch=('i686' 'x86_64')
9 url="http://www.ibiblio.org/mc/"
10 license=('GPL')
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"
19         filegui.c.diff )
20 md5sums=('bdae966244496cd4f6d282d80c9cf3c6'
21          'd9ab8f7239dd9c728edb522f7028a4ca')
23 build() {
24         cd "${srcdir}/mc-${pkgver}"
26         ./configure \
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 \
32             --libexecdir=/usr/lib
34         make
37 package() {
38         cd "${srcdir}/mc-${pkgver}"
40         patch -p0 < ../filegui.c.diff
41         make DESTDIR="${pkgdir}" install
43         # Fix FS#15177
44         sed 's|op_has_zipinfo = 0|op_has_zipinfo = 1|' \
45                 -i "${pkgdir}/usr/lib/mc/extfs.d/uzip"
47         # Fix FS#18312
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+"