python-texttable: update to 1.3.1
[void-packages.git] / srcpkgs / kitty / template
blobf6d7d7bf71e03291edcdcc20a32de53495ebf864
1 # Template file for 'kitty'
2 pkgname=kitty
3 version=0.10.1
4 revision=1
5 python_version=3
6 hostmakedepends="ncurses pkg-config python3-devel wayland-devel wayland-protocols"
7 makedepends="gettext-devel glfw-devel harfbuzz-devel libxkbcommon-devel
8  python3-devel wayland-devel wayland-protocols"
9 depends="kitty-terminfo"
10 conf_files="/etc/kitty/kitty.conf"
11 short_desc="Modern, hackable, featureful, OpenGL based terminal emulator"
12 maintainer="Julio Galvan <juliogalvan@protonmail.com>"
13 license="GPL-3.0-or-later"
14 homepage="https://github.com/kovidgoyal/kitty"
15 distfiles="https://github.com/kovidgoyal/kitty/archive/v${version}.tar.gz"
16 checksum=ef22208497a76e2f88ebe56c176e4608f049b056252cf1bf122c9c1ec711cfa6
18 do_build() {
19         if [ -n "$CROSS_BUILD" ]; then
20                 export CFLAGS="-I${XBPS_CROSS_BASE}/usr/include/python3.6m"
21                 sed -i "s|-fpie|-fpie ${CFLAGS}|g" setup.py
22         fi
23         case "$XBPS_TARGET_MACHINE" in
24                 *-musl)
25                         sed -i 's/pow10/pow_10/g' kitty/parser.c;;
26         esac
27         python3 setup.py linux-package --prefix=${DESTDIR}/usr --verbose
30 do_install() {
31         vmkdir etc/kitty
32         cp ${DESTDIR}/usr/lib/kitty/kitty/kitty.conf ${DESTDIR}/etc/kitty/
35 kitty-terminfo_package() {
36         short_desc+=" - terminfo data"
37         noarch=yes
38         pkg_install() {
39                 vmove usr/share/terminfo
40         }