From 82a2bbc7286c726ff5ef4e087e2f78729e451a02 Mon Sep 17 00:00:00 2001 From: xeruf <27jf@pm.me> Date: Tue, 5 Jul 2022 11:36:39 +0200 Subject: [PATCH] chore: extend make handler --- packages/aur/arch_makepkg => groups/aur | 0 handlers/make/install | 10 ++++++++-- packages/dragon/make | 6 +----- packages/logcli/make | 1 + packages/yay/arch_makepkg | 1 + 5 files changed, 11 insertions(+), 7 deletions(-) rename packages/aur/arch_makepkg => groups/aur (100%) mode change 100755 => 100644 packages/dragon/make create mode 100644 packages/logcli/make create mode 100644 packages/yay/arch_makepkg diff --git a/packages/aur/arch_makepkg b/groups/aur similarity index 100% rename from packages/aur/arch_makepkg rename to groups/aur diff --git a/handlers/make/install b/handlers/make/install index fd10e31..3cb44df 100755 --- a/handlers/make/install +++ b/handlers/make/install @@ -1,3 +1,9 @@ -#!/usr/bin/env sh -cd "$1" +#!/bin/sh -e +case $1 in +(*://*) cd /tmp + git clone "$1" + cd "$(basename "${1%.git}")";; +(*) cd "$1";; +esac +shift sudo checkinstall diff --git a/packages/dragon/make b/packages/dragon/make old mode 100755 new mode 100644 index f1ab0a6..358dd0c --- a/packages/dragon/make +++ b/packages/dragon/make @@ -1,5 +1 @@ -#!/usr/bin/env sh -cd /tmp -git clone https://github.com/mwh/dragon -cd dragon -pwd +https://github.com/mwh/dragon diff --git a/packages/logcli/make b/packages/logcli/make new file mode 100644 index 0000000..b832752 --- /dev/null +++ b/packages/logcli/make @@ -0,0 +1 @@ +https://github.com/grafana/loki.git diff --git a/packages/yay/arch_makepkg b/packages/yay/arch_makepkg new file mode 100644 index 0000000..8435ed0 --- /dev/null +++ b/packages/yay/arch_makepkg @@ -0,0 +1 @@ +yay