blob: b70e61a5a4a72ed401ff3a5a4e5bc0c79270716f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
|
# Contributor: Valery Kartel <valery.kartel@gmail.com>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=mc
pkgver=4.8.21
pkgrel=0
pkgdesc="Filemanager/shell that emulates Norton Commander"
url="https://www.midnight-commander.org"
arch="all"
license="GPL-3.0-or-later"
depends=""
subpackages="$pkgname-doc $pkgname-lang"
makedepends="e2fsprogs-dev glib-dev libssh2-dev ncurses-dev pcre-dev"
source="https://www.midnight-commander.org/downloads/$pkgname-$pkgver.tar.xz
alpine_syntax.patch"
builddir="$srcdir/$pkgname-$pkgver"
build() {
cd "$builddir"
./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=ncurses \
--with-subshell \
--without-gpm-mouse \
--without-included-gettext \
--without-x
make
}
check() {
cd "$builddir"
make check
}
package() {
cd "$builddir"
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="db1a252744b47ebf5339ad204d8b69cb914f25ade7fe5aae2650c4abb57478715d3b7b3a24f4460adfb9fbdc928e8728b369b4f1709215e5e9af3d430fce6acf mc-4.8.21.tar.xz
47aa001e8c20a24631617d665fd0d81b269ebad96696c4bd70c7040bbca713868e02fe53dfaee9a775a57f35a0e7c9e44ce299037379e249ad27354a78d905c3 alpine_syntax.patch"
|