blob: a42cdca0bb3e1a19864376c9968d8486701fa8da (
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.23
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 perl"
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="e51c7f926d296280a57a8ecb5f4b296a850022b7ab9beaba89f5cb7554d8fc3e13c73b8571f78c3162ee85df88f7f46d07c9c893156cda4d1377a01071cdd1c6 mc-4.8.23.tar.xz
47aa001e8c20a24631617d665fd0d81b269ebad96696c4bd70c7040bbca713868e02fe53dfaee9a775a57f35a0e7c9e44ce299037379e249ad27354a78d905c3 alpine_syntax.patch"
|