aboutsummaryrefslogtreecommitdiffstats
path: root/PKGBUILD
blob: 41ce955a1438e42f689ad6b41d8f62ec1ba0e119 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
pkgname=tmux-256color-it
pkgver=0.0.1
pkgrel=3

pkgdesc="Terminfo files for tmux that support italics."
url="https://theos.kyriasis.com/~kyrias"
arch=('any')
license=('GPL')

makedepends=('ncurses')

source=('http://git.savannah.gnu.org/cgit/screen.git/plain/src/terminfo/screeninfo.src'
        'http://git.savannah.gnu.org/cgit/screen.git/plain/COPYING')
sha256sums=('c8c4869c14a0d959767c948d42b93e77c0ae6a7426128923ecc4ae9294af7633'
            '8ceb4b9ee5adedde47b31e975c1d90c73ad27b6b165a1dcd80c7c545eb65b903')

build() {
	tic screeninfo.src -o terminfo
	infocmp -A terminfo screen-256color | sed \
	    -e 's/^screen-256color[^|]*|[^,]*,/tmux-256color-it|tmux-256color with italics support,/' \
	    -e 's/%?%p1%t;3%/%?%p1%t;7%/' \
	    -e 's/smso=[^,]*,/smso=\\E[7m,/' \
	    -e 's/rmso=[^,]*,/rmso=\\E[27m,/' \
	    -e '$s/$/ sitm=\\E[3m, ritm=\\E[23m,/' \
	    > tmux-256color-it
}
package() {
	install -d "$pkgdir"/usr/share/terminfo
	tic tmux-256color-it -o "$pkgdir"/usr/share/terminfo

	install -Dm644 COPYING "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
}