blob: 01557c82021e67510aa6fdec669f84d1e2a458e9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
# Maintainer: OpenSorcerer <alex cat fossfed dog eu>
pkgname=xcaddy
pkgver=0.4.2
pkgrel=1
pkgdesc="Build Caddy with plugins"
arch=('i686' 'x86_64' 'armv7h' 'aarch64')
url="https://github.com/caddyserver/xcaddy"
license=('Apache-2.0')
depends=('go')
makedepends=('git')
source=("git+$url.git#tag=v$pkgver")
sha512sums=('SKIP')
build() {
cd "$pkgname"
export CGO_CPPFLAGS="${CPPFLAGS}"
export CGO_CFLAGS="${CFLAGS}"
export CGO_CXXFLAGS="${CXXFLAGS}"
export CGO_LDFLAGS="${LDFLAGS}"
export GOFLAGS="-buildmode=pie -trimpath -modcacherw"
go build -o xcaddy "cmd/$pkgname/main.go"
}
package() {
cd "$pkgname"
install -Dm755 "./xcaddy" "$pkgdir/usr/bin/xcaddy"
}
|