From 090c82e431c2194d5f3c6e4cd691a64cfd971447 Mon Sep 17 00:00:00 2001 From: oklopfer <104327997+oklopfer@users.noreply.github.com> Date: Mon, 16 Oct 2023 22:45:15 -0400 Subject: [PATCH] add: `pacstall-qa` (#4674) Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> --- packagelist | 1 + .../pacstall-qa-git/pacstall-qa-git.pacscript | 20 +++++++++++++++++++ 2 files changed, 21 insertions(+) create mode 100644 packages/pacstall-qa-git/pacstall-qa-git.pacscript diff --git a/packagelist b/packagelist index 62c6bbe027..354c59047c 100644 --- a/packagelist +++ b/packagelist @@ -298,6 +298,7 @@ owofetch pacget-git paconvert-git pacstall-gui-git +pacstall-qa-git pacup-bin panagement pap diff --git a/packages/pacstall-qa-git/pacstall-qa-git.pacscript b/packages/pacstall-qa-git/pacstall-qa-git.pacscript new file mode 100644 index 0000000000..47a4b44bc5 --- /dev/null +++ b/packages/pacstall-qa-git/pacstall-qa-git.pacscript @@ -0,0 +1,20 @@ +name="pacstall-qa-git" +url="https://github.com/pacstall/pacstall-qa" +pkgver="0.0.1" +gives="pacstall-qa" +makedepends=("make") +pacdeps=("nushell-bin") +pkgdesc="A tool to easily test pacscripts from PRs locally" +maintainer="Oren Klopfer " +pkgver() { + git ls-remote "${url}" master | cut -f1 | cut -c1-8 +} + +build() { + sudo mkdir -p "${pkgdir}/usr/bin" + sudo mkdir -p "${pkgdir}/usr/share/pacstall-qa" +} + +package() { + sudo DESTDIR="${pkgdir}" make install +}