diff options
author | prspkt <prspkt@protonmail.com> | 2018-06-03 17:00:32 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2018-06-06 17:35:06 +0000 |
commit | bfafa2362b2a7c4a96f3a72b4be254efaa0cbbe7 (patch) | |
tree | cdfd7fb03c85b52b88595de55a26661728d7b0ad | |
parent | 7b062ad2a53de7a67a4d1f5a26bb5a612d154e62 (diff) | |
download | alpine_aports-bfafa2362b2a7c4a96f3a72b4be254efaa0cbbe7.tar.bz2 alpine_aports-bfafa2362b2a7c4a96f3a72b4be254efaa0cbbe7.tar.xz alpine_aports-bfafa2362b2a7c4a96f3a72b4be254efaa0cbbe7.zip |
main/mc: modernize, sanitize patch
Switch to the *.xz source archive. Use https for source and upstream URLs.
-rw-r--r-- | main/mc/APKBUILD | 28 | ||||
-rw-r--r-- | main/mc/alpine_syntax.patch | 6 |
2 files changed, 17 insertions, 17 deletions
diff --git a/main/mc/APKBUILD b/main/mc/APKBUILD index 2e0de9aef7..edbc39e1fc 100644 --- a/main/mc/APKBUILD +++ b/main/mc/APKBUILD | |||
@@ -3,14 +3,14 @@ | |||
3 | pkgname=mc | 3 | pkgname=mc |
4 | pkgver=4.8.20 | 4 | pkgver=4.8.20 |
5 | pkgrel=0 | 5 | pkgrel=0 |
6 | pkgdesc="A filemanager/shell that emulates Norton Commander" | 6 | pkgdesc="Filemanager/shell that emulates Norton Commander" |
7 | url="http://www.midnight-commander.org" | 7 | url="https://www.midnight-commander.org" |
8 | arch="all" | 8 | arch="all" |
9 | license="GPL-3.0-or-later" | 9 | license="GPL-3.0-or-later" |
10 | depends="" | 10 | depends="" |
11 | subpackages="$pkgname-doc $pkgname-lang" | 11 | subpackages="$pkgname-doc $pkgname-lang" |
12 | makedepends="e2fsprogs-dev glib-dev pcre-dev ncurses-dev libssh2-dev" | 12 | makedepends="e2fsprogs-dev glib-dev libssh2-dev ncurses-dev pcre-dev" |
13 | source="http://www.midnight-commander.org/downloads/$pkgname-$pkgver.tar.bz2 | 13 | source="https://www.midnight-commander.org/downloads/$pkgname-$pkgver.tar.xz |
14 | alpine_syntax.patch" | 14 | alpine_syntax.patch" |
15 | 15 | ||
16 | builddir="$srcdir/$pkgname-$pkgver" | 16 | builddir="$srcdir/$pkgname-$pkgver" |
@@ -34,8 +34,7 @@ build() { | |||
34 | --with-subshell \ | 34 | --with-subshell \ |
35 | --without-gpm-mouse \ | 35 | --without-gpm-mouse \ |
36 | --without-included-gettext \ | 36 | --without-included-gettext \ |
37 | --without-x \ | 37 | --without-x |
38 | || return 1 | ||
39 | make | 38 | make |
40 | } | 39 | } |
41 | 40 | ||
@@ -45,28 +44,29 @@ check() { | |||
45 | } | 44 | } |
46 | 45 | ||
47 | package() { | 46 | package() { |
48 | make -C "$builddir" DESTDIR="$pkgdir" install || return 1 | 47 | cd "$builddir" |
48 | make DESTDIR="$pkgdir" install | ||
49 | rm -fr "$pkgdir"/usr/share/man/?? | 49 | rm -fr "$pkgdir"/usr/share/man/?? |
50 | } | 50 | } |
51 | 51 | ||
52 | doc() { | 52 | doc() { |
53 | default_doc || return 1 | 53 | default_doc |
54 | mkdir -p "$subpkgdir"/usr/share/doc || return 1 | 54 | mkdir -p "$subpkgdir"/usr/share/doc |
55 | mv "$pkgdir"/usr/share/mc/examples \ | 55 | mv "$pkgdir"/usr/share/mc/examples \ |
56 | "$subpkgdir"/usr/share/doc/mc || return 1 | 56 | "$subpkgdir"/usr/share/doc/mc |
57 | find "$pkgdir"/usr/lib/mc -name README* \ | 57 | find "$pkgdir"/usr/lib/mc -name README* \ |
58 | -exec mv {} "$subpkgdir"/usr/share/doc/mc/ \; | 58 | -exec mv {} "$subpkgdir"/usr/share/doc/mc/ \; |
59 | } | 59 | } |
60 | 60 | ||
61 | lang() { | 61 | lang() { |
62 | default_lang || return 1 | 62 | default_lang |
63 | mkdir -p "$subpkgdir"/usr/share/mc/help \ | 63 | mkdir -p "$subpkgdir"/usr/share/mc/help \ |
64 | "$subpkgdir"/usr/share/mc/hints | 64 | "$subpkgdir"/usr/share/mc/hints |
65 | mv "$pkgdir"/usr/share/mc/help/mc.hlp.* \ | 65 | mv "$pkgdir"/usr/share/mc/help/mc.hlp.* \ |
66 | "$subpkgdir"/usr/share/mc/help/ || return 1 | 66 | "$subpkgdir"/usr/share/mc/help/ |
67 | mv "$pkgdir"/usr/share/mc/hints/mc.hint.* \ | 67 | mv "$pkgdir"/usr/share/mc/hints/mc.hint.* \ |
68 | "$subpkgdir"/usr/share/mc/hints/ | 68 | "$subpkgdir"/usr/share/mc/hints/ |
69 | } | 69 | } |
70 | 70 | ||
71 | sha512sums="533aff7079374e070c8df9e967c151ef09f44ad507517dd3e607d58eba7357cb6ba3cad31b6a0b27c52791a163b28f8c8218e12eda1d900e83bb25daf9d47849 mc-4.8.20.tar.bz2 | 71 | sha512sums="c2460561ae94bed75b1ed12f5c8039c9f8ace4c06987c57d07b8399c4e01c5a6c57851fddb3e918a4541ade089c89e8526078572a09580ccd0ae95344e3c1138 mc-4.8.20.tar.xz |
72 | aee89eaacaafcdfe2ceb2eb7b7dcf08d669dbaffcb76f4c1613498017096c33068b7bf9d06e6f7d0685c9928cebaa932ab78b3a68f3b2de59b512022b3944e8d alpine_syntax.patch" | 72 | 47aa001e8c20a24631617d665fd0d81b269ebad96696c4bd70c7040bbca713868e02fe53dfaee9a775a57f35a0e7c9e44ce299037379e249ad27354a78d905c3 alpine_syntax.patch" |
diff --git a/main/mc/alpine_syntax.patch b/main/mc/alpine_syntax.patch index a93b85492c..b556f7c474 100644 --- a/main/mc/alpine_syntax.patch +++ b/main/mc/alpine_syntax.patch | |||
@@ -1,6 +1,6 @@ | |||
1 | --- old/misc/syntax/Syntax.in | 1 | --- a/misc/syntax/Syntax.in |
2 | +++ new/misc/syntax/Syntax.in | 2 | +++ b/misc/syntax/Syntax.in |
3 | @@ -238,6 +238,9 @@ | 3 | @@ -250,6 +250,9 @@ |
4 | file .\*\\.strace$ Strace\sdebug\soutput | 4 | file .\*\\.strace$ Strace\sdebug\soutput |
5 | include strace.syntax | 5 | include strace.syntax |
6 | 6 | ||