From cd4f221a47b23960a59fd9b8bfc09f71a837ab1d Mon Sep 17 00:00:00 2001 From: Felix Hanley Date: Tue, 13 Feb 2024 12:01:08 +1100 Subject: [PATCH] New package: dumpasn1 --- srcpkgs/dumpasn1/template | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 srcpkgs/dumpasn1/template diff --git a/srcpkgs/dumpasn1/template b/srcpkgs/dumpasn1/template new file mode 100644 index 0000000000000..30084622f7bd5 --- /dev/null +++ b/srcpkgs/dumpasn1/template @@ -0,0 +1,28 @@ +# Template file for 'dumpasn1' +pkgname=dumpasn1 +version=20210422 +revision=1 +makedepends="curl" +short_desc="ASN.1 data display" +maintainer="Felix Hanley " +license="BSD" +homepage="https://www.cs.auckland.ac.nz/~pgut001/" +checksum=8ce8fdbf2e9b11d410b0ab4e44a6b3f89c27080113f051ec1054d230e050a0b8 + +do_fetch() { + mkdir -p ${wrksrc} + $fetch_cmd "${homepage}/dumpasn1.c" +} +do_extract() { + mv ../dumpasn1.c ./ +} + +do_build() { + $CC -o dumpasn1 dumpasn1.c +} + +do_install() { + vbin dumpasn1 + head -n59 dumpasn1.c >LICENSE + vlicense LICENSE +}