Merge pull request #6998 from scadu/i3-gaps

i3-gaps: upgrade to 4.13
This commit is contained in:
Enno Boland 2017-07-10 14:47:55 +02:00 committed by GitHub
commit 19f2f91589

View file

@ -1,17 +1,22 @@
# Template file for 'i3-gaps'
pkgname=i3-gaps
version=4.12
version=4.13
revision=1
build_style=gnu-makefile
hostmakedepends="pkg-config perl git"
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-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 - i3 fork with more features"
maintainer="ian c. <ian@airmail.cc>"
license="BSD"
homepage="https://github.com/Airblader/i3"
distfiles="${homepage}/archive/${version}.tar.gz>${version}.tar.gz"
checksum=e80c07e525a07f2d3d2f02d282774d3264b6d1f165713c9903c06626ba4d2571
wrksrc=i3-${version}
provides="i3-${version}_${revision}"
replaces="i3>=0"
@ -20,15 +25,14 @@ 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"
git clone ${url} ${pkgname}-${version} -b gaps
pre_configure() {
autoreconf -fi
}
pre_build() {
case "$XBPS_TARGET_MACHINE" in
*-musl)
sed -i "/LIBS =/s,-lm,& ${XBPS_CROSS_BASE}/usr/lib/libglob.a,g" common.mk
*-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