main/mc: modernize, sanitize patch

Switch to the *.xz source archive. Use https for source and upstream URLs.
This commit is contained in:
prspkt 2018-06-03 17:00:32 +00:00 committed by Natanael Copa
parent 7b062ad2a5
commit bfafa2362b
2 changed files with 17 additions and 17 deletions

View File

@ -3,14 +3,14 @@
pkgname=mc pkgname=mc
pkgver=4.8.20 pkgver=4.8.20
pkgrel=0 pkgrel=0
pkgdesc="A filemanager/shell that emulates Norton Commander" pkgdesc="Filemanager/shell that emulates Norton Commander"
url="http://www.midnight-commander.org" url="https://www.midnight-commander.org"
arch="all" arch="all"
license="GPL-3.0-or-later" license="GPL-3.0-or-later"
depends="" depends=""
subpackages="$pkgname-doc $pkgname-lang" subpackages="$pkgname-doc $pkgname-lang"
makedepends="e2fsprogs-dev glib-dev pcre-dev ncurses-dev libssh2-dev" makedepends="e2fsprogs-dev glib-dev libssh2-dev ncurses-dev pcre-dev"
source="http://www.midnight-commander.org/downloads/$pkgname-$pkgver.tar.bz2 source="https://www.midnight-commander.org/downloads/$pkgname-$pkgver.tar.xz
alpine_syntax.patch" alpine_syntax.patch"
builddir="$srcdir/$pkgname-$pkgver" builddir="$srcdir/$pkgname-$pkgver"
@ -34,8 +34,7 @@ build() {
--with-subshell \ --with-subshell \
--without-gpm-mouse \ --without-gpm-mouse \
--without-included-gettext \ --without-included-gettext \
--without-x \ --without-x
|| return 1
make make
} }
@ -45,28 +44,29 @@ check() {
} }
package() { package() {
make -C "$builddir" DESTDIR="$pkgdir" install || return 1 cd "$builddir"
make DESTDIR="$pkgdir" install
rm -fr "$pkgdir"/usr/share/man/?? rm -fr "$pkgdir"/usr/share/man/??
} }
doc() { doc() {
default_doc || return 1 default_doc
mkdir -p "$subpkgdir"/usr/share/doc || return 1 mkdir -p "$subpkgdir"/usr/share/doc
mv "$pkgdir"/usr/share/mc/examples \ mv "$pkgdir"/usr/share/mc/examples \
"$subpkgdir"/usr/share/doc/mc || return 1 "$subpkgdir"/usr/share/doc/mc
find "$pkgdir"/usr/lib/mc -name README* \ find "$pkgdir"/usr/lib/mc -name README* \
-exec mv {} "$subpkgdir"/usr/share/doc/mc/ \; -exec mv {} "$subpkgdir"/usr/share/doc/mc/ \;
} }
lang() { lang() {
default_lang || return 1 default_lang
mkdir -p "$subpkgdir"/usr/share/mc/help \ mkdir -p "$subpkgdir"/usr/share/mc/help \
"$subpkgdir"/usr/share/mc/hints "$subpkgdir"/usr/share/mc/hints
mv "$pkgdir"/usr/share/mc/help/mc.hlp.* \ mv "$pkgdir"/usr/share/mc/help/mc.hlp.* \
"$subpkgdir"/usr/share/mc/help/ || return 1 "$subpkgdir"/usr/share/mc/help/
mv "$pkgdir"/usr/share/mc/hints/mc.hint.* \ mv "$pkgdir"/usr/share/mc/hints/mc.hint.* \
"$subpkgdir"/usr/share/mc/hints/ "$subpkgdir"/usr/share/mc/hints/
} }
sha512sums="533aff7079374e070c8df9e967c151ef09f44ad507517dd3e607d58eba7357cb6ba3cad31b6a0b27c52791a163b28f8c8218e12eda1d900e83bb25daf9d47849 mc-4.8.20.tar.bz2 sha512sums="c2460561ae94bed75b1ed12f5c8039c9f8ace4c06987c57d07b8399c4e01c5a6c57851fddb3e918a4541ade089c89e8526078572a09580ccd0ae95344e3c1138 mc-4.8.20.tar.xz
aee89eaacaafcdfe2ceb2eb7b7dcf08d669dbaffcb76f4c1613498017096c33068b7bf9d06e6f7d0685c9928cebaa932ab78b3a68f3b2de59b512022b3944e8d alpine_syntax.patch" 47aa001e8c20a24631617d665fd0d81b269ebad96696c4bd70c7040bbca713868e02fe53dfaee9a775a57f35a0e7c9e44ce299037379e249ad27354a78d905c3 alpine_syntax.patch"

View File

@ -1,6 +1,6 @@
--- old/misc/syntax/Syntax.in --- a/misc/syntax/Syntax.in
+++ new/misc/syntax/Syntax.in +++ b/misc/syntax/Syntax.in
@@ -238,6 +238,9 @@ @@ -250,6 +250,9 @@
file .\*\\.strace$ Strace\sdebug\soutput file .\*\\.strace$ Strace\sdebug\soutput
include strace.syntax include strace.syntax