# Template file for 'libXpm'
pkgname=libXpm
version=3.5.19
revision=1
build_style=gnu-configure
hostmakedepends="gettext pkg-config"
makedepends="xorgproto libSM-devel libXext-devel libXt-devel"
short_desc="X PixMap Library from modular Xorg X11"
maintainer="Orphaned <orphan@voidlinux.org>"
license="MIT"
homepage="https://www.x.org/"
distfiles="${XORG_SITE}/lib/libXpm-${version}.tar.xz"
checksum=ad3576d689221a39dc728f0e0dc02ca7bb6a0d724c9a77fd1bfa1e9af83be900

post_install() {
	vlicense COPYING
	vlicense COPYRIGHT
}

libXpm-devel_package() {
	depends="libX11-devel ${sourcepkg}>=${version}_${revision}"
	short_desc+=" - development files"
	pkg_install() {
		vmove usr/include
		vmove "usr/lib/*.a"
		vmove "usr/lib/*.so"
		vmove usr/lib/pkgconfig
		vmove usr/share/man/man3
	}
}
