mirror of
https://gitdl.cn/https://github.com/chakralinux/desktop.git
synced 2025-01-24 18:42:12 +08:00
54 lines
1.5 KiB
Bash
54 lines
1.5 KiB
Bash
#
|
|
# 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.8.1
|
|
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')
|
|
options=('!emptydirs' '!makeflags')
|
|
source=("https://www.midnight-commander.org/downloads/${pkgname}-${pkgver}.tar.bz2")
|
|
sha256sums=('8f9bd09750c65a7786197a8f7e5a10a6dabf8c8737c564079ca393d8ecaf944d')
|
|
|
|
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 \
|
|
--with-screen=slang --with-subshell --with-vfs --with-x \
|
|
--without-debug --without-gnome --without-included-gettext \
|
|
--libexecdir=/usr/lib
|
|
|
|
make
|
|
}
|
|
|
|
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"
|
|
|
|
sed 's#/usr/bin/env python#/usr/bin/python2#' \
|
|
-i "${pkgdir}/usr/lib/mc/extfs.d/s3+"
|
|
}
|
|
|