# Contributor: Valery Kartel # Maintainer: Natanael Copa pkgname=mc pkgver=4.8.29 pkgrel=2 pkgdesc="Filemanager/shell that emulates Norton Commander" options="!check" # https://midnight-commander.org/ticket/3972#comment:2 url="https://www.midnight-commander.org" arch="all" license="GPL-3.0-or-later" subpackages="$pkgname-doc $pkgname-lang" makedepends="e2fsprogs-dev glib-dev libssh2-dev slang-dev perl gpm-dev" source="https://www.midnight-commander.org/downloads/mc-$pkgver.tar.xz alpine_syntax.patch" build() { ./configure \ --build=$CBUILD \ --host=$CHOST \ --prefix=/usr \ --libexecdir=/usr/lib \ --mandir=/usr/share/man \ --sysconfdir=/etc \ --enable-background \ --enable-charset \ --enable-largefile \ --enable-vfs-sftp \ --with-internal-edit \ --with-mmap \ --with-screen=slang \ --with-subshell \ --with-gpm-mouse \ --without-included-gettext \ --without-x make } check() { make check } package() { make DESTDIR="$pkgdir" install rm -fr "$pkgdir"/usr/share/man/?? } doc() { default_doc mkdir -p "$subpkgdir"/usr/share/doc mv "$pkgdir"/usr/share/mc/examples \ "$subpkgdir"/usr/share/doc/mc find "$pkgdir"/usr/lib/mc -name "README*" \ -exec mv {} "$subpkgdir"/usr/share/doc/mc/ \; } lang() { default_lang mkdir -p "$subpkgdir"/usr/share/mc/help \ "$subpkgdir"/usr/share/mc/hints mv "$pkgdir"/usr/share/mc/help/mc.hlp.* \ "$subpkgdir"/usr/share/mc/help/ mv "$pkgdir"/usr/share/mc/hints/mc.hint.* \ "$subpkgdir"/usr/share/mc/hints/ } sha512sums=" c7e219eda34197d0294748cf5fd1a5dcfedfc17c20cfcf94c4dad5170f87095845f4fc0065e2868342125039c13cc3ba617804df74186816828e93ed71c1e9a3 mc-4.8.29.tar.xz 47aa001e8c20a24631617d665fd0d81b269ebad96696c4bd70c7040bbca713868e02fe53dfaee9a775a57f35a0e7c9e44ce299037379e249ad27354a78d905c3 alpine_syntax.patch "