blob: f0ca63b30591ce5e4007ffd2be875d7ed9bd1708 (
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
28
29
30
31
32
|
# Maintainer: Florian Moser <arch@famoser.ch>
pkgname=symfony-cli
pkgrel=7
pkgver=5.10.4
pkgdesc="The Symfony client helps developers create and manage Symfony applications."
url="https://symfony.com/"
arch=('x86_64')
license=('AGPL3')
install="symfony-cli.install"
depends=('glibc')
makedepends=('git' 'go')
provides=('symfony-cli')
conflicts=('symfony-cli')
source=(
"git+https://github.com/symfony-cli/symfony-cli#tag=v${pkgver}"
)
sha256sums=('SKIP')
build() {
cd "symfony-cli"
DATE=$(date -u +"%Y-%m-%dT%H:%M:%SZ")
PKGVER=${pkgver}
go mod download
go build -o symfony -trimpath -ldflags '-s -w -X main.channel=stable -X main.buildDate='"${DATE}"' -X main.version='"${PKGVER}"''
}
package() {
install -D -m 755 "${srcdir}/symfony-cli/symfony" "${pkgdir}/usr/bin/symfony"
}
|