diff options
author | Óscar García Amor | 2023-12-12 11:33:30 +0100 |
---|---|---|
committer | Óscar García Amor | 2023-12-12 11:33:30 +0100 |
commit | 0530450f4fe149059bc4bf6e96967faf2e987210 (patch) | |
tree | 712125ef0fd3df88bbebbd2c38b3eb06583f7394 | |
parent | 58ea4afae235d9483dfb79d33af93b659cde73e2 (diff) | |
download | aur-0530450f4fe149059bc4bf6e96967faf2e987210.tar.gz |
upgpkg: cc-cli 0.1.5-1
upstream release
-rw-r--r-- | .SRCINFO | 30 | ||||
-rw-r--r-- | .gitignore | 4 | ||||
-rw-r--r-- | PKGBUILD | 44 |
3 files changed, 47 insertions, 31 deletions
@@ -1,17 +1,19 @@ pkgbase = cc-cli - pkgdesc = CloudControl Command Line Interface - pkgver = 7 - pkgrel = 4 - url = https://git.seblu.net/mirror/cc-cli - arch = any - license = GPL2 - makedepends = git - makedepends = python2-setuptools - depends = python2 - depends = python2-sjrpc - depends = python2-xdg - source = git+https://git.seblu.net/mirror/cc-cli.git#tag=v7 - md5sums = SKIP + pkgdesc = handy git-hook and cli for conventional commits + pkgver = 0.1.5 + pkgrel = 1 + url = https://github.com/sousandrei/cc-cli + arch = arm + arch = armv6h + arch = armv7h + arch = aarch64 + arch = i686 + arch = x86_64 + license = GPL3 + makedepends = rust + depends = gcc-libs + depends = openssl + source = cc-cli-0.1.5.tar.gz::https://github.com/sousandrei/cc-cli/archive/v0.1.5.tar.gz + b2sums = 5203b76a6a57e54edaba9465b5a463396793238c876443044bc24c15adadd5be28b49c6277d2f6d178ea12031163746850cdd05deb593b3d6d5d7fb249a4a465 pkgname = cc-cli - diff --git a/.gitignore b/.gitignore new file mode 100644 index 000000000000..f71c635dafda --- /dev/null +++ b/.gitignore @@ -0,0 +1,4 @@ +* +!.gitignore +!PKGBUILD +!.SRCINFO @@ -1,25 +1,35 @@ -# Maintainer: Sébastien Luttringer <sebastien.luttringer@arkena.com> +# Maintainer: "Amhairghin" Oscar Garcia Amor (https://ogarcia.me) pkgname=cc-cli -pkgver=7 -pkgrel=4 -pkgdesc='CloudControl Command Line Interface' -arch=('any') -url='https://git.seblu.net/mirror/cc-cli' -license=('GPL2') -depends=('python2' 'python2-sjrpc' 'python2-xdg') -makedepends=('git' 'python2-setuptools') -source=("git+https://git.seblu.net/mirror/cc-cli.git#tag=v$pkgver") -md5sums=('SKIP') +pkgver=0.1.5 +pkgrel=1 +pkgdesc='handy git-hook and cli for conventional commits' +arch=('arm' 'armv6h' 'armv7h' 'aarch64' 'i686' 'x86_64') +url='https://github.com/sousandrei/cc-cli' +license=('GPL3') +depends=('gcc-libs' 'openssl') +makedepends=('rust') +source=("${pkgname}-${pkgver}.tar.gz::https://github.com/sousandrei/${pkgname}/archive/v${pkgver}.tar.gz") +b2sums=('5203b76a6a57e54edaba9465b5a463396793238c876443044bc24c15adadd5be28b49c6277d2f6d178ea12031163746850cdd05deb593b3d6d5d7fb249a4a465') + +prepare() { + cd "${pkgname}-${pkgver}" + export RUSTUP_TOOLCHAIN=stable + cargo fetch --locked --target "$(rustc -vV | sed -n 's/host: //p')" +} build() { - cd $pkgname - python2 setup.py build + cd "${pkgname}-${pkgver}" + export RUSTUP_TOOLCHAIN=stable + export CARGO_TARGET_DIR=target + cargo build --frozen --release } package() { - cd $pkgname - python2 setup.py install --root="$pkgdir" --optimize=1 + # binary + install -Dm755 "${srcdir}/${pkgname}-${pkgver}/target/release/${pkgname}" \ + "${pkgdir}/usr/bin/${pkgname}" + # readme + install -Dm644 "${srcdir}/${pkgname}-${pkgver}/README.md" \ + "${pkgdir}/usr/share/doc/${pkgname}/README.md" } - -# vim:set ts=2 sw=2 et: |