aboutsummaryrefslogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD24
1 files changed, 17 insertions, 7 deletions
diff --git a/PKGBUILD b/PKGBUILD
index 7e9b2e7..41ce955 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,22 +1,32 @@
pkgname=tmux-256color-it
pkgver=0.0.1
-pkgrel=2
+pkgrel=3
pkgdesc="Terminfo files for tmux that support italics."
url="https://theos.kyriasis.com/~kyrias"
arch=('any')
-license=('MIT')
+license=('GPL')
makedepends=('ncurses')
-source=('tmux-256color-it'
- 'LICENSE')
-sha256sums=('58ea656c17cbedd06c386fd3b77f4a8ac3e39781799c27d9b0ab2fa15a191ee8'
- 'd7c21d3e838f422c3977fe20c888e12365550a8eca5e57c944bf06a956071876')
+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 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+ install -Dm644 COPYING "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
}