void-packages/srcpkgs/i3-gaps/template
2020-11-17 12:56:58 -06:00

48 lines
1.4 KiB
Bash

# Template file for 'i3-gaps'
pkgname=i3-gaps
version=4.19
revision=1
wrksrc="i3-${version}"
build_style=meson
configure_args="-Dmans=true"
hostmakedepends="pkg-config perl autoconf automake asciidoc pod2mdoc xmlto"
makedepends="pcre-devel yajl-devel libxcb-devel libev-devel
pango-devel startup-notification-devel libxkbcommon-devel
xcb-util-keysyms-devel xcb-util-wm-devel xcb-util-cursor-devel
xcb-util-xrm-devel"
depends="perl-AnyEvent-I3"
conf_files="/etc/i3/config /etc/i3/config.keycodes"
short_desc="Improved tiling window manager - i3 fork with more features"
maintainer="ian c. <ian@airmail.cc>"
license="BSD-3-Clause"
homepage="https://github.com/Airblader/i3"
distfiles="${homepage}/archive/${version}.tar.gz>${version}.tar.gz"
checksum=dbd739dae5c16a94763dac0a7407d0307f0814f7bf48b99591b772820c874b4f
provides="i3-${version}_${revision}"
replaces="i3>=0"
case "$XBPS_TARGET_MACHINE" in
*-musl) makedepends+=" libglob-devel";;
esac
pre_build() {
case "$XBPS_TARGET_MACHINE" in
*-musl)
vsed -i "/^common_deps/i glob_dep = cc.find_library('glob')" meson.build
vsed -i "/^common_deps/a glob_dep," meson.build
vsed -i '/include/s,glob.h,libglob/glob.h,g' i3bar/src/main.c libi3/resolve_tilde.c
vsed -i '/GLOB_TILDE/s/glob(/g_glob(/g' i3bar/src/main.c libi3/resolve_tilde.c
vsed -i 's/globfree(/g_globfree(/g' i3bar/src/main.c libi3/resolve_tilde.c
;;
esac
}
do_check() {
:
}
post_install() {
rm -rf ${DESTDIR}/usr/include
vlicense LICENSE
}