aboutsummaryrefslogtreecommitdiffstats
path: root/main
diff options
context:
space:
mode:
authorValery Kartel <valery.kartel@gmail.com>2016-01-14 19:11:10 +0200
committerTimo Teräs <timo.teras@iki.fi>2016-01-19 09:39:48 +0000
commit0f476cad13b5a183c977a83aa6504a96fb6b4bbd (patch)
treef25f9b7ca92b29e2e7cfa6133183707f409f8917 /main
parent0a47602eb6a1d4d213b2bd81beb18e29149aeb3d (diff)
downloadaports-0f476cad13b5a183c977a83aa6504a96fb6b4bbd.tar.bz2
aports-0f476cad13b5a183c977a83aa6504a96fb6b4bbd.tar.xz
main/mc: various packaging improvements
- enable SFTP-vfs - add APKBUILD syntax highliting - non-english help and hints are moved to -lang - Serbian menu file /etc/mc/mc.menu.sr moved to -lang - mcedit macros examples are moved to -doc - README's from /usr/lib/mc moved to -doc - non-english man pages are removed.
Diffstat (limited to 'main')
-rw-r--r--main/mc/APKBUILD38
-rw-r--r--main/mc/alpine_syntax.patch12
2 files changed, 43 insertions, 7 deletions
diff --git a/main/mc/APKBUILD b/main/mc/APKBUILD
index 6e41d18b2..1638c7ad2 100644
--- a/main/mc/APKBUILD
+++ b/main/mc/APKBUILD
@@ -1,15 +1,17 @@
+# Contributor: Valery Kartel <valery.kartel@gmail.com>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=mc
pkgver=4.8.15
-pkgrel=0
+pkgrel=1
pkgdesc="A filemanager/shell that emulates Norton Commander"
-url="http://www.ibiblio.org/mc/"
+url="http://www.midnight-commander.org"
arch="all"
license="GPL3+"
depends=""
subpackages="$pkgname-doc $pkgname-lang"
-makedepends="e2fsprogs-dev glib-dev pcre-dev ncurses-dev"
-source="http://www.midnight-commander.org/downloads/mc-$pkgver.tar.bz2"
+makedepends="e2fsprogs-dev glib-dev pcre-dev ncurses-dev libssh2-dev"
+source="http://www.midnight-commander.org/downloads/$pkgname-$pkgver.tar.bz2
+ alpine_syntax.patch"
_builddir="$srcdir"/$pkgname-$pkgver
@@ -33,6 +35,7 @@ build() {
--enable-background \
--enable-charset \
--enable-largefile \
+ --enable-vfs-sftp \
--with-edit \
--with-mmap \
--with-screen=ncurses \
@@ -53,6 +56,27 @@ package() {
make DESTDIR="$pkgdir" install || return 1
}
-md5sums="db48ce26ba425a61edc51930e94227fd mc-4.8.15.tar.bz2"
-sha256sums="f74e3da70410975cdeb27ee9a66d1dd812250b6d3ede364bca728dd5a48e5471 mc-4.8.15.tar.bz2"
-sha512sums="d5eb35d5ca25cb5b19d512adc15f11d23035b59c68977a08bdacadc39a3d49cc9c9fe659fd4ca0bb17f8ab7e0b71574cbaac9dbc1935f64f0534a28d60eaffe1 mc-4.8.15.tar.bz2"
+doc() {
+ default_doc;
+ rm -fr "$subpkgdir"/usr/share/man/??
+ 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"/etc/mc \
+ "$subpkgdir"/usr/share/mc/help \
+ "$subpkgdir"/usr/share/mc/hints
+ mv "$pkgdir"/etc/mc/mc.menu.* "$subpkgdir"/etc/mc/
+ 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/
+}
+
+md5sums="db48ce26ba425a61edc51930e94227fd mc-4.8.15.tar.bz2
+e483f42ec389b0be50d8b9bafab889eb alpine_syntax.patch"
+sha256sums="f74e3da70410975cdeb27ee9a66d1dd812250b6d3ede364bca728dd5a48e5471 mc-4.8.15.tar.bz2
+9ca96cc0ea6893e21496621f88a58fbc377d64cc39f5e350e8cec9045bf3bb6c alpine_syntax.patch"
+sha512sums="d5eb35d5ca25cb5b19d512adc15f11d23035b59c68977a08bdacadc39a3d49cc9c9fe659fd4ca0bb17f8ab7e0b71574cbaac9dbc1935f64f0534a28d60eaffe1 mc-4.8.15.tar.bz2
+aee89eaacaafcdfe2ceb2eb7b7dcf08d669dbaffcb76f4c1613498017096c33068b7bf9d06e6f7d0685c9928cebaa932ab78b3a68f3b2de59b512022b3944e8d alpine_syntax.patch"
diff --git a/main/mc/alpine_syntax.patch b/main/mc/alpine_syntax.patch
new file mode 100644
index 000000000..a93b85492
--- /dev/null
+++ b/main/mc/alpine_syntax.patch
@@ -0,0 +1,12 @@
+--- old/misc/syntax/Syntax.in
++++ new/misc/syntax/Syntax.in
+@@ -238,6 +238,9 @@
+ file .\*\\.strace$ Strace\sdebug\soutput
+ include strace.syntax
+
++file APKBUILD$ Alpine\spackage\sbuild\sscript
++include PKGBUILD.syntax
++
+ file PKGBUILD$ Arch\spackage\sbuild\sscript
+ include PKGBUILD.syntax
+