46 lines
1.4 KiB
Bash
46 lines
1.4 KiB
Bash
# Template file for 'i3-gaps'
|
|
pkgname=i3-gaps
|
|
version=4.16
|
|
revision=1
|
|
build_style=gnu-configure
|
|
configure_args="--disable-builddir"
|
|
hostmakedepends="pkg-config perl git autoconf automake"
|
|
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=c933bc4c37cddd23d703f1453dcbab6e9cd7ed7f2c54177339eb88977c09a299
|
|
wrksrc="i3-${version}"
|
|
|
|
provides="i3-${version}_${revision}"
|
|
replaces="i3>=0"
|
|
|
|
case "$XBPS_TARGET_MACHINE" in
|
|
*-musl) makedepends+=" libglob-devel";;
|
|
esac
|
|
|
|
pre_configure() {
|
|
autoreconf -fi
|
|
}
|
|
|
|
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() {
|
|
rm -rf ${DESTDIR}/usr/include
|
|
vlicense LICENSE
|
|
}
|