From 57141c07caea02a6dde49bfa49ef4d4e27225312 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thorben=20G=C3=BCnther?= Date: Thu, 21 Oct 2021 13:33:13 +0200 Subject: [PATCH] Start with personal packages --- .build.yml | 13 +++++++++++++ Makefile | 7 +++++++ README.md | 3 +++ namcap.sh | 10 ++++++++++ 4 files changed, 33 insertions(+) create mode 100644 .build.yml create mode 100644 Makefile create mode 100644 README.md create mode 100755 namcap.sh diff --git a/.build.yml b/.build.yml new file mode 100644 index 0000000..1daa9c2 --- /dev/null +++ b/.build.yml @@ -0,0 +1,13 @@ +image: archlinux +packages: + - namcap +sources: + - https://git.xenrox.net/~xenrox/personal-packages +triggers: + - action: email + condition: failure + to: Thorben Günther +tasks: + - check: | + cd personal-packages + make namcap diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..023aaca --- /dev/null +++ b/Makefile @@ -0,0 +1,7 @@ +.PHONY : clean +clean : + git clean -fdx + +.PHONY: namcap +namcap: + ./namcap.sh diff --git a/README.md b/README.md new file mode 100644 index 0000000..e0916d4 --- /dev/null +++ b/README.md @@ -0,0 +1,3 @@ +[![builds.sr.ht status](https://builds.xenrox.net/~xenrox/personal-packages/commits/.build.yml.svg)](https://builds.xenrox.net/~xenrox/aur/commits/.build.yml?) + +Personal Arch Linux packages. diff --git a/namcap.sh b/namcap.sh new file mode 100755 index 0000000..2dea057 --- /dev/null +++ b/namcap.sh @@ -0,0 +1,10 @@ +#!/bin/bash + +exit_code=0 + +for dir in */; do + output=$(namcap "$dir"PKGBUILD) + [ -n "$output" ] && echo "$output" && exit_code=1 +done + +exit $exit_code -- 2.44.0