container-logs-pkg/PKGBUILD

27 lines
929 B
Bash
Raw Normal View History

2020-11-21 09:42:49 +00:00
# Maintainer: Markus Pesch <markus.pesch@cryptic.systems>
pkgname=container-logs
pkgver=0.1.0
2022-06-26 12:19:10 +00:00
pkgrel=2
2020-11-21 09:42:49 +00:00
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')
2020-11-21 19:02:52 +00:00
makedepends=('git' 'go')
2020-11-21 09:42:49 +00:00
source=(
"https://git.cryptic.systems/volker.raschek/container-logs/archive/v${pkgver}.tar.gz"
)
2022-06-26 12:19:10 +00:00
sha512sums=('a58945d67f58da882e4a00b122e217997f08e5fcbb0f2c555a1ccd16eb77df25fafcd65e23f001930acf45306d474791d0f4ced79d26f2cc0e4f2fdd87007cc6')
2020-11-21 09:42:49 +00:00
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
2022-06-26 12:19:10 +00:00
}