void-packages/srcpkgs/i3ipc-glib/template

37 lines
1.0 KiB
Bash

# Template file for 'i3ipc-glib'
pkgname=i3ipc-glib
version=0.6.0
revision=4
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 which"
makedepends="json-glib-devel libxcb-devel libglib-devel"
short_desc="C interface library to i3 window manager"
maintainer="Orphaned <orphan@voidlinux.org>"
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"
build_options_default="gir"
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
}
}