```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 ```
31 lines
1.2 KiB
Bash
31 lines
1.2 KiB
Bash
# Template file for 'xterm'
|
|
pkgname=xterm
|
|
version=368
|
|
revision=1
|
|
build_style=gnu-configure
|
|
configure_args="--enable-wide-chars --enable-88-color --enable-broken-osc
|
|
--enable-256-color --enable-luit --enable-paste64 --enable-ansi-color
|
|
--enable-mini-luit --enable-readline-mouse --enable-broken-st
|
|
--enable-narrowproto --libdir=/etc --enable-load-vt-fonts
|
|
--with-app-defaults=/usr/share/X11/app-defaults --enable-i18n
|
|
--disable-full-tgetent --disable-imake --enable-doublechars
|
|
--enable-freetype --enable-tcap-query --enable-logging --enable-dabbrev
|
|
--with-pkg-config=yes --enable-exec-xterm --with-utempter --enable-sixel-graphics"
|
|
hostmakedepends="pkg-config"
|
|
makedepends="libXaw-devel libXft-devel libutempter-devel libxkbfile-devel
|
|
ncurses-devel"
|
|
short_desc="X Terminal Emulator"
|
|
maintainer="Frank Steinborn <steinex@nognu.de>"
|
|
license="MIT, X11"
|
|
homepage="http://invisible-island.net/xterm/"
|
|
changelog="http://invisible-island.net/xterm/xterm.log.html"
|
|
distfiles="https://invisible-mirror.net/archives/xterm/xterm-${version}.tgz"
|
|
checksum=2ff5169930b6b49ef0bafb5e1331c94f1a98c310442bba7798add821c76ae712
|
|
|
|
post_install() {
|
|
for f in {u,}xterm.desktop; do
|
|
vinstall $f 644 usr/share/applications
|
|
done
|
|
|
|
vlicense COPYING
|
|
}
|