From d2ae79b02c131cb77fbfe5ce12a5d16a20795e8a Mon Sep 17 00:00:00 2001 From: Marcin Puc Date: Sun, 16 Oct 2022 10:08:49 +0200 Subject: [PATCH] New package: dra-0.3.8 --- srcpkgs/dra/template | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 srcpkgs/dra/template diff --git a/srcpkgs/dra/template b/srcpkgs/dra/template new file mode 100644 index 000000000000..3618e181a6d8 --- /dev/null +++ b/srcpkgs/dra/template @@ -0,0 +1,26 @@ +# Template file for 'dra' +pkgname=dra +version=0.3.8 +revision=1 +archs="x86_64* i686* aarch64* arm*" # uses ring +build_style=cargo +build_helper=qemu +# skip integration tests as they are run on docker +make_check_args="-- --skip archives:: --skip debian::" +short_desc="Command line tool to download release assets from GitHub" +maintainer="Marcin Puc " +license="MIT" +homepage="https://github.com/devmatteini/dra" +changelog="https://raw.githubusercontent.com/devmatteini/dra/main/CHANGELOG.md" +distfiles="https://github.com/devmatteini/dra/archive/refs/tags/${version}.tar.gz" +checksum=58ce5b96bc1531717935b0e1dbbeaf753344a09f5f762903de0e7e1679948878 + +post_install() { + DRA="${DESTDIR}/usr/bin/dra" + for shell in bash fish zsh; do + vtargetrun ${DRA} completion ${shell} > dra.${shell} + vcompletion dra.${shell} ${shell} + done + + vlicense LICENSE +}