2019-12-13 20:38:53 +00:00
|
|
|
# Maintainer : Christian Rebischke <chris.rebischke@archlinux.org>
|
|
|
|
|
|
|
|
pkgname=traefik
|
2020-02-18 10:04:05 +00:00
|
|
|
pkgver=2.1.4
|
2019-12-13 20:38:53 +00:00
|
|
|
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")
|
2020-02-18 10:04:05 +00:00
|
|
|
sha512sums=('c45d8b90bc1fc437f38102c03f7d5383b94e5ee362d2c2c837085d80a5007d0432989abc5698267260fb9ba8b22561c68012b47ad0367bc221d501b776ed8992')
|
2019-12-13 20:38:53 +00:00
|
|
|
|
|
|
|
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"
|
|
|
|
}
|