summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorMuflone2018-03-19 02:25:38 +0100
committerMuflone2018-03-19 02:25:38 +0100
commitec3e3be0b689644de8b4fa68144e1b1ecdecd10e (patch)
tree15e770b095f5034a2ff515f765fd6a1c7f9b3866
downloadaur-gelfcat-git.tar.gz
New package gelfcat-git r6.7b422ae
-rw-r--r--.SRCINFO21
-rw-r--r--PKGBUILD49
2 files changed, 70 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..652995f1d5a
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,21 @@
+# Generated by mksrcinfo v8
+# Mon Mar 19 01:25:02 UTC 2018
+pkgbase = gelfcat-git
+ pkgdesc = A command-line utility to send files to Graylog
+ pkgver = r6.7b422ae
+ pkgrel = 1
+ url = https://github.com/zooniverse/gelfcat
+ arch = x86_64
+ license = apache
+ makedepends = git
+ makedepends = go
+ depends = glibc
+ source = gelfcat-git::git+https://github.com/zooniverse/gelfcat.git
+ source = graylog-golang-git::git+https://github.com/robertkowalski/graylog-golang
+ source = gonx-git::git+https://github.com/zooniverse/gonx
+ sha256sums = SKIP
+ sha256sums = SKIP
+ sha256sums = SKIP
+
+pkgname = gelfcat-git
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..9d9a7244908
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,49 @@
+# Maintainer: Muflone http://www.muflone.com/contacts/english/
+
+pkgname=gelfcat-git
+pkgver=r6.7b422ae
+pkgrel=1
+pkgdesc="A command-line utility to send files to Graylog"
+arch=('x86_64')
+url="https://github.com/zooniverse/gelfcat"
+license=('apache')
+depends=('glibc')
+makedepends=('git' 'go')
+source=("${pkgname}"::"git+https://github.com/zooniverse/gelfcat.git"
+ "graylog-golang-git"::"git+https://github.com/robertkowalski/graylog-golang"
+ "gonx-git"::"git+https://github.com/zooniverse/gonx")
+sha256sums=('SKIP'
+ 'SKIP'
+ 'SKIP')
+
+pkgver() {
+ cd "$pkgname"
+ ( set -o pipefail
+ git describe --long 2>/dev/null | sed 's/\([^-]*-g\)/r\1/;s/-/./g' ||
+ printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
+ )
+}
+
+prepare()
+{
+ export GOPATH="${srcdir}"
+ rm -rf "${srcdir}/src"
+ install -d -m 755 "${srcdir}/src/github.com/robertkowalski"
+ cp -r -f "${srcdir}/graylog-golang-git" "${srcdir}/src/github.com/robertkowalski/graylog-golang"
+ install -d -m 755 "${srcdir}/src/github.com/zooniverse"
+ cp -r -f "${srcdir}/gonx-git" "${srcdir}/src/github.com/zooniverse/gonx"
+}
+
+build()
+{
+ cd "${pkgname}"
+ export GOPATH="${srcdir}"
+ go build -o "${pkgname/-git/}"
+}
+
+package() {
+ cd "${pkgname}"
+ # Install launcher file
+ install -m 755 -d "${pkgdir}/usr/bin"
+ install -m 755 -t "${pkgdir}/usr/bin" "${pkgname/-git/}"
+}