diff options
author | Luís Ferreira | 2021-05-11 13:00:23 +0100 |
---|---|---|
committer | Luís Ferreira | 2021-05-11 13:02:14 +0100 |
commit | 28e0a04f74ae9e537840cc17ac6e811af9fc8bb6 (patch) | |
tree | 83a04dd8833ecff1ea3deeb1218c95ff2e530df7 | |
download | aur-28e0a04f74ae9e537840cc17ac6e811af9fc8bb6.tar.gz |
railwayapp-cli: initial package release 0.2.17
Signed-off-by: Luís Ferreira <contact@lsferreira.net>
-rw-r--r-- | .SRCINFO | 15 | ||||
-rw-r--r-- | PKGBUILD | 28 |
2 files changed, 43 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..5b1452ace8f8 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,15 @@ +pkgbase = railwayapp-cli + pkgdesc = Command Line Interface for Railway.app + pkgver = 0.2.17 + pkgrel = 1 + url = https://railway.app/ + arch = x86_64 + license = MIT + makedepends = go + makedepends = git + depends = glibc + source = git+https://github.com/railwayapp/cli.git#tag=v0.2.17 + sha256sums = SKIP + +pkgname = railwayapp-cli + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..6c306e07d80f --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,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" +} |