void-packages/srcpkgs/kitty/template

46 lines
1.3 KiB
Bash
Raw Normal View History

2018-05-25 01:51:07 +00:00
# Template file for 'kitty'
pkgname=kitty
2018-07-10 16:54:53 +00:00
version=0.11.3
2018-05-25 01:51:07 +00:00
revision=1
python_version=3
2018-06-28 19:22:26 +00:00
hostmakedepends="ncurses pkg-config"
2018-05-25 01:51:07 +00:00
makedepends="gettext-devel glfw-devel harfbuzz-devel libxkbcommon-devel
python3-devel wayland-devel wayland-protocols"
depends="kitty-terminfo"
conf_files="/etc/kitty/kitty.conf"
short_desc="Modern, hackable, featureful, OpenGL based terminal emulator"
2018-07-03 20:45:44 +00:00
maintainer="Benjamin Slade <slade@jnanam.net>"
2018-05-25 01:51:07 +00:00
license="GPL-3.0-or-later"
2018-06-28 19:22:26 +00:00
homepage="https://sw.kovidgoyal.net/kitty/"
distfiles="https://github.com/kovidgoyal/kitty/releases/download/v${version}/kitty-${version}.tar.xz"
2018-07-10 16:54:53 +00:00
checksum=e36e3d777824030b686003fbf20c1861efb8183e43bf3efc9cb8f92a0aa9a10e
2018-06-28 19:22:26 +00:00
if [ -n "$CROSS_BUILD" ]; then
hostmakedepends+=" python3-devel wayland-devel wayland-protocols"
fi
2018-05-25 01:51:07 +00:00
do_build() {
if [ -n "$CROSS_BUILD" ]; then
export CFLAGS="-I${XBPS_CROSS_BASE}/usr/include/python3.6m"
sed -i "s|-fpie|-fpie ${CFLAGS}|g" setup.py
fi
case "$XBPS_TARGET_MACHINE" in
*-musl)
sed -i 's/pow10/pow_10/g' kitty/parser.c;;
esac
python3 setup.py linux-package --prefix=${DESTDIR}/usr --verbose
}
do_install() {
vmkdir etc/kitty
2018-06-28 19:22:26 +00:00
cp ${DESTDIR}/usr/share/doc/kitty/html/_downloads/kitty.conf ${DESTDIR}/etc/kitty/
2018-05-25 01:51:07 +00:00
}
kitty-terminfo_package() {
short_desc+=" - terminfo data"
noarch=yes
pkg_install() {
vmove usr/share/terminfo
}
}