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
2022-07-19 18:06:12 +00:00
pkgver=1.9.0
2022-06-26 07:56:55 +00:00
pkgrel=1
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")
2022-07-19 18:06:12 +00:00
sha512sums=('aef19964c740b4d9b512b696759cd4b31793ced91f066864e534242d74694a796ee9930a809c2b5a6779238e32572642ab05fa5a7f8cf1062d0a9dd5f40c52d8')
2021-01-08 21:54:48 +00:00
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"
}