# Template file for 'libt3widget'
pkgname=libt3widget
version=1.2.2
revision=1
build_style=configure
configure_args="--prefix=/usr"
hostmakedepends="pkg-config gettext"
makedepends="libtool gettext-devel libtranscript-devel libunistring-devel
 libt3config-devel libt3window-devel libt3key-devel ncurses-libtinfo-devel
 pcre2-devel libxcb-devel gpm-devel"
short_desc="Tilde Terminal Toolkit's widget libary"
maintainer="Andrew Benson <abenson+void@gmail.com>"
license="GPL-3.0-or-later"
homepage="https://os.ghalkes.nl/t3/libt3widget.html"
distfiles="https://os.ghalkes.nl/dist/libt3widget-${version}.tar.bz2"
checksum=9eb7e1d0ccdfc917f18ba1785a2edb4faa6b0af8b460653d962abf91136ddf1c

export LIBTOOL=${XBPS_CROSS_BASE}/usr/bin/libtool

libt3widget-devel_package() {
	short_desc+=" - development files"
	depends="${makedepends} ${sourcepkg}>=${version}_${revision}"
	pkg_install() {
		vmove usr/include
		vmove usr/lib/pkgconfig
		vmove "usr/lib/*.so"
	}
}
