Date: Sunday, May 14, 2023 @ 18:47:34
Author: orhun
Revision: 1461682
archrelease: copy trunk to community-x86_64
Added:
cargo-shuttle/repos/community-x86_64/PKGBUILD
(from rev 1461681, cargo-shuttle/trunk/PKGBUILD)
Deleted:
cargo-shuttle/repos/community-x86_64/PKGBUILD
----------+
PKGBUILD | 101 +++++++++++++++++++++++++++++++++----------------------------
1 file changed, 55 insertions(+), 46 deletions(-)
Deleted: PKGBUILD
===================================================================
--- PKGBUILD 2023-05-14 18:47:17 UTC (rev 1461681)
+++ PKGBUILD 2023-05-14 18:47:34 UTC (rev 1461682)
@@ -1,46 +0,0 @@
-# Maintainer: Orhun Parmaksız <[email protected]>
-# Contributor: Stijn Seghers <stijnseghers at gmail dot com>
-
-pkgname=cargo-shuttle
-_commit=62a21c17d035fb62586ca2d0c786ccdca0d5d12c
-pkgver=0.16.0
-pkgrel=1
-pkgdesc='Cargo command for the shuttle platform'
-arch=('x86_64')
-url="https://github.com/shuttle-hq/shuttle"
-license=('Apache')
-depends=('gcc-libs' 'openssl' 'zlib' 'curl')
-makedepends=('cargo' 'git')
-source=("$pkgname::git+$url.git#commit=$_commit"
- "$pkgname-examples::git+https://github.com/shuttle-hq/examples.git")
-sha512sums=('SKIP'
- 'SKIP')
-options=('!lto')
-
-prepare() {
- cd "$pkgname"
- git submodule init
- git config submodule."examples".url "${srcdir}/${pkgname}"-examples
- git -c protocol.file.allow=always submodule update --init --recursive
-
- cd "$pkgname"
- cargo fetch --locked --target "$CARCH-unknown-linux-gnu"
-}
-
-build() {
- cd "$pkgname/$pkgname"
- cargo build --release --frozen
-}
-
-check() {
- cd "$pkgname/$pkgname"
- cargo test --frozen --lib
-}
-
-package() {
- cd "$pkgname"
- install -Dm 755 "target/release/$pkgname" -t "$pkgdir/usr/bin"
- install -Dm 644 "$pkgname/README.md" -t "$pkgdir/usr/share/doc/$pkgname"
-}
-
-# vim:set ts=2 sw=2 et:
Copied: cargo-shuttle/repos/community-x86_64/PKGBUILD (from rev 1461681,
cargo-shuttle/trunk/PKGBUILD)
===================================================================
--- PKGBUILD (rev 0)
+++ PKGBUILD 2023-05-14 18:47:34 UTC (rev 1461682)
@@ -0,0 +1,55 @@
+# Maintainer: Orhun Parmaksız <[email protected]>
+# Contributor: Stijn Seghers <stijnseghers at gmail dot com>
+
+pkgname=cargo-shuttle
+_commit=62a21c17d035fb62586ca2d0c786ccdca0d5d12c
+pkgver=0.16.0
+pkgrel=2
+pkgdesc='Cargo command for the shuttle platform'
+arch=('x86_64')
+url="https://github.com/shuttle-hq/shuttle"
+license=('Apache')
+depends=('gcc-libs' 'openssl' 'zlib' 'curl')
+makedepends=('cargo' 'git')
+source=("$pkgname::git+$url.git#commit=$_commit"
+ "$pkgname-examples::git+https://github.com/shuttle-hq/examples.git")
+sha512sums=('SKIP'
+ 'SKIP')
+options=('!lto')
+
+prepare() {
+ cd "$pkgname"
+ git submodule init
+ git config submodule."examples".url "${srcdir}/${pkgname}"-examples
+ git -c protocol.file.allow=always submodule update --init --recursive
+ mkdir completions
+
+ cd "$pkgname"
+ cargo fetch --locked --target "$CARCH-unknown-linux-gnu"
+}
+
+build() {
+ cd "$pkgname/$pkgname"
+ cargo build --release --frozen
+ cd ..
+ local compgen="target/release/$pkgname generate -s"
+ $compgen bash >"completions/$pkgname"
+ $compgen fish >"completions/$pkgname.fish"
+ $compgen zsh >"completions/_$pkgname"
+}
+
+check() {
+ cd "$pkgname/$pkgname"
+ cargo test --frozen --lib
+}
+
+package() {
+ cd "$pkgname"
+ install -Dm 755 "target/release/$pkgname" -t "$pkgdir/usr/bin"
+ install -Dm 644 "$pkgname/README.md" -t "$pkgdir/usr/share/doc/$pkgname"
+ install -Dm 644 "completions/$pkgname" -t
"$pkgdir/usr/share/bash-completion/completions/"
+ install -Dm 644 "completions/$pkgname.fish" -t
"$pkgdir/usr/share/fish/vendor_completions.d/"
+ install -Dm 644 "completions/_$pkgname" -t
"$pkgdir/usr/share/zsh/site-functions/"
+}
+
+# vim:set ts=2 sw=2 et: