docker-pushrm-pkg/PKGBUILD

23 lines
878 B
Bash
Raw Normal View History

2021-01-08 21:54:48 +00:00
# Maintainer: Markus Pesch <markus.pesch@cryptic.systems>
pkgname=docker-pushrm
pkgver=1.7.0
2021-01-08 22:05:18 +00:00
pkgrel=2
2021-01-08 21:54:48 +00:00
pkgdesc='"Docker Push Readme" - a Docker CLI plugin to update container repo docs'
2021-01-08 22:05:18 +00:00
arch=('x86_64')
2021-01-08 21:54:48 +00:00
url=https://github.com/christian-korneck/docker-pushrm
license=('MIT')
makedepends=('go')
source=("https://github.com/christian-korneck/docker-pushrm/archive/v${pkgver}.zip")
sha512sums=('887457138add4aebd5ddd32318b4c0c0bfa1a4c372edf1c52277ba3c4ef02cdc578406e3062fe65b9cbe323ea19cf14e2f75fc447e8733f4cae9f2fea1ec5ecc')
build() {
cd ${srcdir}/${pkgname}-${pkgver} && go build
}
package() {
mkdir --parents /usr/lib/docker/cli-plugins
install -D --mode=0755 "${srcdir}/${pkgname}-${pkgver}/${pkgname}" "${pkgdir}/usr/lib/docker/cli-plugins/${pkgname}"
install -D --mode=0644 "${srcdir}/${pkgname}-${pkgver}/LICENSE" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}