From 530de0b932b1df7e878e40bcb7990e848c8b38b2 Mon Sep 17 00:00:00 2001 From: Juan RP Date: Fri, 15 May 2009 01:29:12 +0200 Subject: [PATCH] Added libtasn1-2.1 template. --HG-- extra : convert_revision : 6ea43615d3d6e9c9088e0ead1ac9e29665910ee8 --- templates/libtasn1-devel | 1 + templates/libtasn1-tools | 1 + templates/libtasn1/depends | 2 ++ templates/libtasn1/devel.template | 19 +++++++++++++++++++ templates/libtasn1/template | 23 +++++++++++++++++++++++ templates/libtasn1/tools.template | 15 +++++++++++++++ 6 files changed, 61 insertions(+) create mode 120000 templates/libtasn1-devel create mode 120000 templates/libtasn1-tools create mode 100644 templates/libtasn1/depends create mode 100644 templates/libtasn1/devel.template create mode 100644 templates/libtasn1/template create mode 100644 templates/libtasn1/tools.template diff --git a/templates/libtasn1-devel b/templates/libtasn1-devel new file mode 120000 index 00000000000..b56a2c87473 --- /dev/null +++ b/templates/libtasn1-devel @@ -0,0 +1 @@ +libtasn1 \ No newline at end of file diff --git a/templates/libtasn1-tools b/templates/libtasn1-tools new file mode 120000 index 00000000000..b56a2c87473 --- /dev/null +++ b/templates/libtasn1-tools @@ -0,0 +1 @@ +libtasn1 \ No newline at end of file diff --git a/templates/libtasn1/depends b/templates/libtasn1/depends new file mode 100644 index 00000000000..866ffda4b7d --- /dev/null +++ b/templates/libtasn1/depends @@ -0,0 +1,2 @@ +abi_depends=2.1 +api_depends=${abi_depends} diff --git a/templates/libtasn1/devel.template b/templates/libtasn1/devel.template new file mode 100644 index 00000000000..ec298f33ede --- /dev/null +++ b/templates/libtasn1/devel.template @@ -0,0 +1,19 @@ +# Template file for 'libtasn1-devel'. +# +short_desc="${short_desc} (development files)" +long_desc="${long_desc} + + This package contains files for development, headers, static libs, etc." + +Add_dependency run libtasn1 + +do_install() +{ + mkdir -p ${DESTDIR}/usr/lib ${DESTDIR}/usr/share/man + mv ${SRCPKGDESTDIR}/usr/include ${DESTDIR}/usr + mv ${SRCPKGDESTDIR}/usr/lib/*.*a ${DESTDIR}/usr/lib + mv ${SRCPKGDESTDIR}/usr/lib/*.so ${DESTDIR}/usr/lib + mv ${SRCPKGDESTDIR}/usr/lib/pkgconfig ${DESTDIR}/usr/lib + mv ${SRCPKGDESTDIR}/usr/share/man/man3 ${DESTDIR}/usr/share/man + mv ${SRCPKGDESTDIR}/usr/share/info ${DESTDIR}/usr/share +} diff --git a/templates/libtasn1/template b/templates/libtasn1/template new file mode 100644 index 00000000000..f756436d7e6 --- /dev/null +++ b/templates/libtasn1/template @@ -0,0 +1,23 @@ +# Template build file for 'libtasn1'. +pkgname=libtasn1 +sourcepkg=$pkgname +version=2.1 +distfiles="ftp://ftp.gnutls.org/pub/gnutls/$pkgname/$pkgname-$version.tar.gz" +build_style=gnu_configure +short_desc="ASN.1 structure parser library" +maintainer="Juan RP " +checksum=ef89d6ef509185f6f3b67140d58e5aa4494fa87118e0982dc2fddeb0d0204533 +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." + +subpackages="devel tools" +Add_dependency full glibc diff --git a/templates/libtasn1/tools.template b/templates/libtasn1/tools.template new file mode 100644 index 00000000000..9901a55336d --- /dev/null +++ b/templates/libtasn1/tools.template @@ -0,0 +1,15 @@ +# Template file for 'libtasn1-tools'. +# +short_desc="${short_desc} (ASN.1 tools)" +long_desc="${long_desc} + + This package contains some ASN.1 tools that come with libtasn1." + +Add_dependency run libtasn1 + +do_install() +{ + mkdir -p ${DESTDIR}/usr/share/man + mv ${SRCPKGDESTDIR}/usr/bin ${DESTDIR}/usr + mv ${SRCPKGDESTDIR}/usr/share/man/man1 ${DESTDIR}/usr/share/man +}