void-packages/srcpkgs/i3-gaps/template

42 lines
1.3 KiB
Bash
Raw Normal View History

2015-12-17 10:32:15 +01:00
# Template file for 'i3-gaps'
pkgname=i3-gaps
2016-03-08 03:45:21 +01:00
version=4.12
revision=1
2015-12-17 10:32:15 +01:00
build_style=gnu-makefile
hostmakedepends="pkg-config perl git"
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"
2016-03-08 03:45:21 +01:00
conf_files="/etc/i3/config /etc/i3/config.keycodes"
short_desc="Improved tiling window manager - i3 fork with more features"
2015-12-17 10:32:15 +01:00
maintainer="ian c. <ian@airmail.cc>"
license="BSD"
homepage="https://github.com/Airblader/i3"
provides="i3-${version}_${revision}"
replaces="i3>=0"
case "$XBPS_TARGET_MACHINE" in
*-musl) makedepends+=" libglob-devel";;
esac
do_fetch() {
local url="git://github.com/Airblader/i3.git"
msg_normal "Fetching source from $url ...\n"
2016-03-08 03:45:21 +01:00
git clone ${url} ${pkgname}-${version} -b gaps
2015-12-17 10:32:15 +01:00
}
pre_build() {
case "$XBPS_TARGET_MACHINE" in
*-musl)
sed -i "/LIBS =/s,-lm,& ${XBPS_CROSS_BASE}/usr/lib/libglob.a,g" common.mk
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
}