765e304c4b
```sh git grep -l '^patch_args=-Np0' "srcpkgs/$1*/template" | while read template; do for p in ${template%/template}/patches/*; do sed -i ' \,^[+-][+-][+-] /dev/null,b /^[*-]\+ [0-9]\+\(,[0-9]\+\)\? [*-]\+$/b s,^[*][*][*] ,&a/, /^--- /{ s,\(^--- \)\(./\)*,\1a/, s,[.][Oo][Rr][Ii][Gg]\([ /]\),\1, s/[.][Oo][Rr][Ii][Gg]$// s/[.]patched[.]\([^.]\)/.\1/ h } /^+++ -/{ g s/^--- a/+++ b/ b } s,\(^+++ \)\(./\)*,\1b/, ' "$p" done sed -i '/^patch_args=/d' $template done ```
26 lines
840 B
Bash
26 lines
840 B
Bash
# Template file for 'mc'
|
|
pkgname=mc
|
|
version=4.8.26
|
|
revision=1
|
|
build_style=gnu-configure
|
|
configure_args="--with-screen=slang --without-x"
|
|
hostmakedepends="perl pkg-config"
|
|
makedepends="e2fsprogs-devel gpm-devel libglib-devel libssh2-devel slang-devel"
|
|
short_desc="User-friendly file manager and visual shell"
|
|
maintainer="Lugubris <lugubris@disroot.org>"
|
|
license="GPL-3.0-or-later"
|
|
homepage="https://midnight-commander.org/"
|
|
distfiles="https://www.midnight-commander.org/downloads/mc-${version}.tar.xz"
|
|
#distfiles="http://fossies.org/linux/misc/mc-${version}.tar.gz"
|
|
checksum=c6deadc50595f2d9a22dc6c299a9f28b393e358346ebf6ca444a8469dc166c27
|
|
python_version=2
|
|
|
|
conf_files="
|
|
/etc/mc/filehighlight.ini
|
|
/etc/mc/mc.default.keymap
|
|
/etc/mc/mc.emacs.keymap
|
|
/etc/mc/mc.ext
|
|
/etc/mc/mc.keymap
|
|
/etc/mc/mc.menu
|
|
/etc/mc/mcedit.menu
|
|
/etc/mc/sfs.ini"
|