# Template build file for 'libtasn1'.
pkgname=libtasn1
version=3.2
revision=2
build_style=gnu-configure
configure_args="--disable-static"
short_desc="ASN.1 structure parser library"
maintainer="Juan RP <xtraeme@gmail.com>"
homepage="http://www.gnu.org/software/libtasn1/"
license="GPL-3, LGPL-2.1"
distfiles="http://ftp.gnu.org/gnu/$pkgname/$pkgname-$version.tar.gz"
checksum=672ee08108a0f98b006377ab9e5e926ed6d7e4811f18538f838c457e7db36f3f
long_desc="
 libtasn1 library was developed for ASN1 (Abstract Syntax Notation One)
 structures management.

 The main features of this library are:
  - on-line ASN1 structure management that does not require any C
    code file generation.
  - off-line ASN1 structure management with C code file generation
    containing an array.
  - DER (Distinguish Encoding Rules) encoding.
  - no limits for INTEGER and ENUMERATED values."

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

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

libtasn1_package() {
	pkg_install() {
		vmove usr
	}
}