# Template file for 'libdockapp'
pkgname=libdockapp
version=0.7.3
revision=1
build_style=gnu-configure
hostmakedepends="autoconf automake font-util libtool m4 pkg-config"
makedepends="libX11-devel libXext-devel libXpm-devel"
depends="font-util"
short_desc="DockApp Development Standard Library"
maintainer="Orphaned <orphan@voidlinux.org>"
license="BSD-3-Clause"
homepage="https://www.dockapps.net/libdockapp"
changelog="https://repo.or.cz/dockapps.git/blob_plain/HEAD:/libdockapp/ChangeLog"
distfiles="https://www.dockapps.net/download/libdockapp-${version}.tar.gz"
checksum=16d992f684dfcdb19e3682822d495f473615fba6e9e2fa7a106307bc767b389c

font_dirs="/usr/share/fonts/X11/misc"

pre_configure() {
	autoreconf -fi
}

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

post_install() {
	rm -f "${DESTDIR}/usr/share/fonts/X11/misc/fonts.dir"
	vlicense README
}
