4b97cd2fb4
```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 ```
24 lines
888 B
Bash
24 lines
888 B
Bash
# Template file for 'screen'
|
|
pkgname=screen
|
|
version=4.8.0
|
|
revision=2
|
|
build_style=gnu-configure
|
|
configure_args="--with-sys-screenrc=/etc/screenrc --enable-pam
|
|
--enable-colors256 --enable-rxvt_osc --enable-telnet
|
|
--enable-use-locale --with-socket-dir=/run/screens --with-pty-group=5"
|
|
makedepends="pam-devel ncurses-devel"
|
|
conf_files="/etc/screenrc /etc/skel/.screenrc"
|
|
short_desc="GNU screen manager with VT100/ANSI terminal emulation"
|
|
maintainer="Frank Steinborn <steinex@nognu.de>"
|
|
license="GPL-3.0-or-later"
|
|
homepage="http://www.gnu.org/s/screen/"
|
|
distfiles="${GNU_SITE}/$pkgname/$pkgname-$version.tar.gz"
|
|
checksum=6e11b13d8489925fde25dfb0935bf6ed71f9eb47eff233a181e078fde5655aa1
|
|
|
|
post_install() {
|
|
vinstall etc/etcscreenrc 0644 etc screenrc
|
|
vinstall etc/screenrc 0644 etc/skel .screenrc
|
|
vinstall ${FILESDIR}/screen 0644 etc/pam.d
|
|
|
|
chmod 4755 ${DESTDIR}/usr/bin/screen-${version}
|
|
}
|