diff options
author | Matthias Gatto | 2024-01-23 14:58:55 +0100 |
---|---|---|
committer | Matthias Gatto | 2024-01-23 14:58:55 +0100 |
commit | c4075d2f5030f963204e3e09417cd31c905b631d (patch) | |
tree | c6a0699586d50d0ade9c7b6a7534ead655557e88 | |
download | aur-oapi-cli-git.tar.gz |
initial commit
-rw-r--r-- | .SRCINFO | 13 | ||||
-rw-r--r-- | PKGBUILD | 34 |
2 files changed, 47 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..424e5cc89f18 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,13 @@ +pkgbase = oapi-cli-git + pkgdesc = New Outscale CLI + pkgver = nightly.linux.r0.gc6a9503 + pkgrel = 1 + url = https://github.com/outscale/oapi-cli + arch = any + license = BSD + makedepends = git + depends = curl + source = git+https://github.com/outscale/oapi-cli.git + sha256sums = SKIP + +pkgname = oapi-cli-git diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..2a044017fdcd --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,34 @@ +# Maintainer: Matthias gatto <matthias.gatto@outscale.com> +# Reference: PKGBUILD(5) + +pkgname=oapi-cli-git +pkgrel=1 +pkgdesc='New Outscale CLI' +pkgver=nightly.linux.r0.gc6a9503 + +arch=('any') +url='https://github.com/outscale/oapi-cli' +license=(BSD) + +pkgver() { + cd "${srcdir}/oapi-cli" + git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g' +} + +makedepends=(git) +depends=(curl) + +source=("git+https://github.com/outscale/oapi-cli.git") +sha256sums=("SKIP") + +build() { + cd "${srcdir}/oapi-cli" + make +} + +package() { + cd "${srcdir}/oapi-cli" + install -Dm 644 "${srcdir}/oapi-cli/oapi-cli-completion.bash" "$pkgdir/usr/share/bash-completion/completions/oapi-cli" + install -Dm 775 "${srcdir}/oapi-cli/oapi-cli" "$pkgdir/usr/bin/oapi-cli" + install -Dm 644 "${srcdir}/oapi-cli/LICENSE" "$pkgdir/usr/share/licenses/oapi-cli/LICENSE" +} |