From fd3ebf1bafcdbb5b5ed4739be680cf58b966f1d0 Mon Sep 17 00:00:00 2001 From: Markus Pesch Date: Sat, 21 Nov 2020 10:42:49 +0100 Subject: [PATCH] Initial Commit --- .SRCINFO | 17 +++++++++++++++++ .gitignore | 5 +++++ PKGBUILD | 28 ++++++++++++++++++++++++++++ 3 files changed, 50 insertions(+) create mode 100644 .SRCINFO create mode 100644 .gitignore create mode 100644 PKGBUILD diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 0000000..036d3e5 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,17 @@ +pkgbase = container-logs + pkgdesc = Print logs of docker containers on stdout + pkgver = 0.1.0 + pkgrel = 0 + url = https://git.cryptic.systems/volker.raschek/container-logs + arch = x86_64 + arch = armv7h + license = Apache 2.0 + makedepends = git + makedepends = go + makedepends = make + depends = docker + source = https://git.cryptic.systems/volker.raschek/container-logs/archive/v0.1.0.tar.gz + sha512sums = a58945d67f58da882e4a00b122e217997f08e5fcbb0f2c555a1ccd16eb77df25fafcd65e23f001930acf45306d474791d0f4ced79d26f2cc0e4f2fdd87007cc6 + +pkgname = container-logs + diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..9c39eb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1,5 @@ +* +!*.install +!.gitignore +!.SRCINFO +!PKGBUILD diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 0000000..7fc4c3c --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,28 @@ +# Maintainer: Markus Pesch + +pkgname=container-logs +pkgver=0.1.0 +pkgrel=0 +pkgdesc='Print logs of docker containers on stdout' +arch=('x86_64' 'armv7h') +url=https://git.cryptic.systems/volker.raschek/container-logs +license=('Apache 2.0') +depends=('docker') +makedepends=('git' 'go' 'make') +source=( + "https://git.cryptic.systems/volker.raschek/container-logs/archive/v${pkgver}.tar.gz" +) +sha512sums=( + "a58945d67f58da882e4a00b122e217997f08e5fcbb0f2c555a1ccd16eb77df25fafcd65e23f001930acf45306d474791d0f4ced79d26f2cc0e4f2fdd87007cc6" +) + +build() { + GOBIN=${HOME}/go/bin + PATH=${GOBIN}:${PATH} + make --directory ${srcdir}/container-logs bin/tmp/container-logs VERSION=${pkgver} +} + +package() { + install -D --mode 4755 ${srcdir}/container-logs/bin/tmp/container-logs ${pkgdir}/usr/bin/container-logs + install -D --mode 644 ${srcdir}/container-logs/LICENSE ${pkgdir}/usr/share/licenses/container-logs/LICENSE +} \ No newline at end of file