void-packages/srcpkgs/i3/template
maxice8 85a03e3ff4 i3: update to 4.15.
Closes: #12381 [via git-merge-pr]
2018-03-12 17:51:56 -07:00

45 lines
1.3 KiB
Bash

# Template file for 'i3'
pkgname=i3
version=4.15
revision=1
build_style=gnu-configure
configure_args="--disable-builddir"
hostmakedepends="pkg-config perl"
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"
conf_files="/etc/i3/config /etc/i3/config.keycodes"
short_desc="Improved tiling window manager"
maintainer="Juan RP <xtraeme@voidlinux.eu>"
license="BSD-3-Clause"
homepage="https://i3wm.org/"
distfiles="${homepage}/downloads/${pkgname}-${version}.tar.bz2"
checksum=217d524d1fbc85ae346b25f6848d1b7bcd2c23184ec88d29114bf5a621385326
case "$XBPS_TARGET_MACHINE" in
*-musl) makedepends+=" libglob-devel";;
esac
pre_build() {
case "$XBPS_TARGET_MACHINE" in
*-musl)
sed -i "/^LIBS =/s,$,& ${XBPS_CROSS_BASE}/usr/lib/libglob.a," Makefile
sed -i '/include/s,glob.h,libglob/glob.h,g' i3bar/src/main.c libi3/resolve_tilde.c
sed -i '/GLOB_TILDE/s/glob(/g_glob(/g' i3bar/src/main.c libi3/resolve_tilde.c
sed -i 's/globfree(/g_globfree(/g' i3bar/src/main.c libi3/resolve_tilde.c
;;
esac
}
post_install() {
vlicense LICENSE
vmkdir usr/share/man/man1
install -m644 man/*.1 ${DESTDIR}/usr/share/man/man1
}
i3-devel_package() {
short_desc+=" - development files"
pkg_install() {
vmove usr/include
}
}