traefik/PKGBUILD
Christian Rebischke c846317da9 upgpkg: 2.1.2-1
2020-01-18 10:22:02 +00:00

26 lines
953 B
Bash

# Maintainer : Christian Rebischke <chris.rebischke@archlinux.org>
pkgname=traefik
pkgver=2.1.2
pkgrel=1
pkgdesc="Simple tool for making locally-trusted development certificates"
arch=('x86_64')
url="https://containo.us/traefik/"
license=('MIT')
makedepends=('go-pie' 'git' 'go-bindata')
depends=('glibc')
source=("${pkgname}-${pkgver}.tar.gz::https://github.com/containous/traefik/releases/download/v${pkgver}/traefik-v${pkgver}.src.tar.gz")
sha512sums=('e3ebc523f8f74188b8b5f5d60a8888a2684a5bc43ab859e2b8a3df43064889c4fa9b38209fa2969afa772e2c63a9d30ece31621b1e56e289069cfff1398e1abe')
build() {
go generate
cd cmd/traefik
go build -trimpath -ldflags "-extldflags ${LDFLAGS}"
}
package() {
install -Dm755 cmd/traefik/"${pkgname}" "${pkgdir}/usr/bin/${pkgname}"
install -Dm644 LICENSE.md "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
install -Dm644 contrib/systemd/traefik.service "${pkgdir}/usr/lib/systemd/system/traefik.service"
}