aboutsummaryrefslogtreecommitdiff
path: root/_AUR
diff options
context:
space:
mode:
Diffstat (limited to '_AUR')
-rw-r--r--_AUR/.SRCINFO14
-rw-r--r--_AUR/Makefile10
-rw-r--r--_AUR/PKGBUILD47
3 files changed, 71 insertions, 0 deletions
diff --git a/_AUR/.SRCINFO b/_AUR/.SRCINFO
new file mode 100644
index 0000000..ce40bd1
--- /dev/null
+++ b/_AUR/.SRCINFO
@@ -0,0 +1,14 @@
+pkgbase = haminer-git
+ pkgdesc = Library and program to parse and forward HAProxy logs.
+ pkgver = 0.1.0.r17.g7e7c491
+ pkgrel = 1
+ url = https://git.sr.ht/~shulhan/haminer
+ arch = x86_64
+ license = GPL3
+ makedepends = go
+ makedepends = git
+ provides = haminer
+ source = haminer-git::git+https://git.sr.ht/~shulhan/haminer
+ md5sums = SKIP
+
+pkgname = haminer-git
diff --git a/_AUR/Makefile b/_AUR/Makefile
new file mode 100644
index 0000000..8def7c2
--- /dev/null
+++ b/_AUR/Makefile
@@ -0,0 +1,10 @@
+## SPDX-FileCopyrightText: 2022 M. Shulhan <ms@kilabit.info>
+## SPDX-License-Identifier: GPL-3.0-or-later
+
+.PHONY: all release
+
+all:
+ makepkg -s
+
+release:
+ makepkg --printsrcinfo > .SRCINFO
diff --git a/_AUR/PKGBUILD b/_AUR/PKGBUILD
new file mode 100644
index 0000000..1e5c1c4
--- /dev/null
+++ b/_AUR/PKGBUILD
@@ -0,0 +1,47 @@
+# Maintainer: shulhan <ms@kilabit.info>
+
+pkgname=haminer-git
+pkgver=0.1.0.r17.g7e7c491
+pkgrel=1
+
+pkgdesc="Library and program to parse and forward HAProxy logs."
+arch=(x86_64)
+url='https://git.sr.ht/~shulhan/haminer'
+license=('GPL3')
+
+makedepends=(
+ 'go'
+ 'git'
+)
+
+provides=('haminer')
+
+source=(
+ "$pkgname::git+https://git.sr.ht/~shulhan/haminer"
+ #"$pkgname::git+file:///home/ms/go/src/git.sr.ht/~shulhan/haminer"
+)
+md5sums=(
+ 'SKIP'
+)
+
+backup=(
+ 'etc/haminer.conf'
+)
+
+pkgver() {
+ cd "$pkgname"
+ git describe --long --tags | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
+}
+
+build() {
+ cd "$pkgname"
+ make
+}
+
+package() {
+ cd "$pkgname"
+ install -Dm644 ./cmd/haminer/haminer.conf $pkgdir/etc/haminer.conf
+ install -Dm755 ./haminer $pkgdir/usr/bin/haminer
+ install -Dm644 ./cmd/haminer/haminer.service $pkgdir/usr/lib/systemd/system/haminer.service
+ install -Dm644 COPYING $pkgdir/usr/share/licenses/haminer/COPYING
+}