# Template file for 'libtasn1'
pkgname=libtasn1
version=4.21.0
revision=2
build_style=gnu-configure
hostmakedepends="perl texinfo"
short_desc="ASN.1 structure parser library"
maintainer="Orphaned <orphan@voidlinux.org>"
license="LGPL-2.1-or-later"
homepage="https://www.gnu.org/software/libtasn1/"
changelog="https://gitlab.com/gnutls/libtasn1/-/raw/master/NEWS.md"
distfiles="${GNU_SITE}/$pkgname/$pkgname-$version.tar.gz"
checksum=1d8a444a223cc5464240777346e125de51d8e6abf0b8bac742ac84609167dc87

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

libtasn1-tools_package() {
	short_desc+=" - ASN.1 tools"
	license="GPL-3.0-or-later"
	pkg_install() {
		vmove usr/bin
		vmove usr/share
	}
}
