47 lines
1.4 KiB
Bash
47 lines
1.4 KiB
Bash
# Template file for 'i3'
|
|
pkgname=i3
|
|
version=4.19
|
|
revision=1
|
|
build_style=meson
|
|
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"
|
|
depends="perl-AnyEvent-I3"
|
|
conf_files="/etc/i3/config /etc/i3/config.keycodes"
|
|
short_desc="Improved tiling window manager"
|
|
maintainer="Frank Steinborn <steinex@nognu.de>"
|
|
license="BSD-3-Clause"
|
|
homepage="https://i3wm.org/"
|
|
distfiles="${homepage}/downloads/${pkgname}-${version}.tar.xz"
|
|
checksum=aca48b03c0c70607826a1a91333065ff44d61774c152ddc9210fbc1627355872
|
|
|
|
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
|
|
}
|
|
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
|
|
}
|
|
}
|