42 lines
1.2 KiB
Bash
42 lines
1.2 KiB
Bash
# Template file for 'i3ipc-glib'
|
|
pkgname=i3ipc-glib
|
|
version=0.6.0
|
|
revision=3
|
|
build_style=gnu-configure
|
|
build_helper="gir"
|
|
configure_args="$(vopt_enable gir introspection) --disable-static"
|
|
hostmakedepends="autoconf automake libtool gtk-doc pkg-config glib-devel
|
|
gobject-introspection"
|
|
makedepends="json-glib-devel libxcb-devel libglib-devel"
|
|
short_desc="C interface library to i3 window manager"
|
|
maintainer="Steve Prybylski <sa.prybylx@gmail.com>"
|
|
license="GPL-3.0-or-later"
|
|
homepage="https://github.com/acrisci/i3ipc-glib"
|
|
distfiles="https://github.com/acrisci/${pkgname}/archive/v${version}.tar.gz"
|
|
checksum=13796add0292885683040a01ae974f4aacfdb44e3d1ab871d2d94da443489415
|
|
|
|
build_options="gir"
|
|
|
|
case "$XBPS_TARGET_MACHINE" in
|
|
i686-musl|x86_64-musl) build_options_default+=" gir" ;;
|
|
*-musl) ;;
|
|
*) build_options_default+=" gir" ;;
|
|
esac
|
|
|
|
pre_configure() {
|
|
NOCONFIGURE=1 ./autogen.sh
|
|
}
|
|
|
|
i3ipc-glib-devel_package() {
|
|
short_desc+=" - development files"
|
|
depends="${sourcepkg}>=${version}_${revision} libglib-devel json-glib-devel"
|
|
pkg_install() {
|
|
vmove usr/include
|
|
vmove "usr/lib/*.so"
|
|
vmove usr/lib/pkgconfig
|
|
if [ "$build_option_gir" ]; then
|
|
vmove usr/share/gir-1.0
|
|
fi
|
|
}
|
|
}
|