summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 6c306e07d80f3392f63337c0e0b89124a24dbf28 (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
# Maintainer: Luís Ferreira <net dot lsferreira at contact, backwards>

pkgname=railwayapp-cli
pkgver=0.2.17
pkgrel=1
pkgdesc="Command Line Interface for Railway.app"
arch=("x86_64")
url="https://railway.app/"
license=("MIT")
depends=('glibc')
makedepends=("go" "git")
source=("git+https://github.com/railwayapp/cli.git#tag=v${pkgver}")
sha256sums=('SKIP')

build() {
    cd "${srcdir}/cli"
    export CGO_LDFLAGS="$LDFLAGS"
    export CGO_CFLAGS="$CFLAGS"
    export CGO_CXXFLAGS="$CXXFLAGS"
    export CGO_CPPFLAGS="$CPPFLAGS"
    make build
}

package(){
    cd "${srcdir}/cli"
    install -Dm755 bin/railway -t "$pkgdir/usr/bin"
    install -Dm644 'LICENSE' "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}