PKGBUILD 1.78 KB
Newer Older
abveritas's avatar
abveritas committed
1
pkgname=mc
Jeff Huang's avatar
Jeff Huang committed
2
pkgver=4.8.25
3
pkgrel=1
utg's avatar
utg committed
4
pkgdesc="Midnight Commander is a text based filemanager/shell that emulates Norton Commander"
abveritas's avatar
abveritas committed
5
arch=('x86_64')
Jeff Huang's avatar
Jeff Huang committed
6
url="https://midnight-commander.org/"
abveritas's avatar
abveritas committed
7 8 9
license=('GPL')
depends=('e2fsprogs' 'glib2' 'pcre' 'gpm>=1.20.4' 'slang')
makedepends=('libxt' 'libx11')
utg's avatar
utg committed
10 11 12 13 14 15 16 17 18 19 20 21 22
optdepends=(
    'cabextract: ucab extfs'
    'cdparanoia: audio extfs'
    'cdrkit: iso9660 extfs'
    'gawk: hp48+ extfs'
    'aspell: spelling corrections'
    'cvs: CVS support'
    'mtools: a+ extfs'
    'perl: needed by several extfs scripts'
    'unarj: uarj extfs'
    'unrar: urar extfs'
    'zip: uzip extfs'
    'p7zip: support for 7zip archives')
23
screenshot=('http://ompldr.org/vOG9vNg')
abveritas's avatar
abveritas committed
24
options=('!emptydirs' '!makeflags')
utg's avatar
utg committed
25 26 27 28 29 30 31
backup=('etc/mc/edit.indent.rc'
        'etc/mc/filehighlight.ini'
        'etc/mc/mcedit.menu'
        'etc/mc/mc.ext'
        'etc/mc/mc.keymap'
        'etc/mc/mc.menu'
        'etc/mc/sfs.ini')
Jeff Huang's avatar
Jeff Huang committed
32
source=("http://www.midnight-commander.org/downloads/${pkgname}-${pkgver}.tar.xz")
Jeff Huang's avatar
Jeff Huang committed
33
sha256sums=('ffc19617f20ebb23330acd3998b7fd559a042d172fa55746d53d246697b2548a')
abveritas's avatar
abveritas committed
34 35 36 37 38 39 40

build() {
	cd ${srcdir}/${pkgname}-${pkgver}

	./configure \
	    --prefix=/usr --sysconfdir=/etc --mandir=/usr/share/man \
	    --enable-background --enable-charset --enable-largefile \
41
	    --with-edit --with-gpm-mouse --with-mmap --enable-vfs-smb \
abveritas's avatar
abveritas committed
42 43 44 45
	    --with-screen=slang --with-subshell --with-vfs --with-x \
	    --without-debug --without-gnome --without-included-gettext \
	    --libexecdir=/usr/lib

abveritas's avatar
abveritas committed
46
	make 
abveritas's avatar
abveritas committed
47 48 49 50 51 52 53
}

package() {
	cd ${srcdir}/${pkgname}-${pkgver}

	make DESTDIR=${pkgdir} install

Anke's avatar
Anke committed
54
	# Fixes
abveritas's avatar
abveritas committed
55 56 57
	sed -i 's|op_has_zipinfo = 0|op_has_zipinfo = 1|' \
	    ${pkgdir}/usr/lib/mc/extfs.d/uzip

58 59 60 61
	rm "${pkgdir}/usr/lib/mc/extfs.d/u7z"

	sed 's#/usr/bin/env python#/usr/bin/python2#' \
		-i "${pkgdir}/usr/lib/mc/extfs.d/s3+"
abveritas's avatar
abveritas committed
62
}