desktop/mc/PKGBUILD

63 lines
1.8 KiB
Bash
Raw Normal View History

2010-08-06 06:31:19 +08:00
pkgname=mc
2018-06-04 06:32:17 +08:00
pkgver=4.8.21
pkgrel=1
2014-04-15 06:35:52 +08:00
pkgdesc="Midnight Commander is a text based filemanager/shell that emulates Norton Commander"
2012-12-29 02:14:27 +08:00
arch=('x86_64')
2018-06-04 06:32:17 +08:00
url="https://midnight-commander.org/"
2010-08-06 06:31:19 +08:00
license=('GPL')
depends=('e2fsprogs' 'glib2' 'pcre' 'gpm>=1.20.4' 'slang')
makedepends=('libxt' 'libx11')
2014-04-15 06:35:52 +08:00
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')
screenshot=('http://ompldr.org/vOG9vNg')
2010-08-06 06:31:19 +08:00
options=('!emptydirs' '!makeflags')
2014-04-15 06:35:52 +08:00
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')
2015-11-17 19:52:17 +08:00
source=("http://www.midnight-commander.org/downloads/${pkgname}-${pkgver}.tar.xz")
2018-06-04 06:32:17 +08:00
sha256sums=('8f37e546ac7c31c9c203a03b1c1d6cb2d2f623a300b86badfd367e5559fe148c')
2010-08-06 06:31:19 +08:00
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 --enable-vfs-smb \
2010-08-06 06:31:19 +08:00
--with-screen=slang --with-subshell --with-vfs --with-x \
--without-debug --without-gnome --without-included-gettext \
--libexecdir=/usr/lib
2011-07-27 23:20:05 +08:00
make
2010-08-06 06:31:19 +08:00
}
package() {
cd ${srcdir}/${pkgname}-${pkgver}
make DESTDIR=${pkgdir} install
2012-07-19 01:52:49 +08:00
# Fixes
2010-08-06 06:31:19 +08:00
sed -i 's|op_has_zipinfo = 0|op_has_zipinfo = 1|' \
${pkgdir}/usr/lib/mc/extfs.d/uzip
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+"
2010-08-06 06:31:19 +08:00
}