Date: Wednesday, May 10, 2023 @ 21:14:30
Author: orhun
Revision: 1459840
archrelease: copy trunk to community-x86_64
Added:
cargo-shuttle/repos/community-x86_64/
cargo-shuttle/repos/community-x86_64/PKGBUILD
(from rev 1459839, cargo-shuttle/trunk/PKGBUILD)
----------+
PKGBUILD | 46 ++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 46 insertions(+)
Copied: cargo-shuttle/repos/community-x86_64/PKGBUILD (from rev 1459839,
cargo-shuttle/trunk/PKGBUILD)
===================================================================
--- community-x86_64/PKGBUILD (rev 0)
+++ community-x86_64/PKGBUILD 2023-05-10 21:14:30 UTC (rev 1459840)
@@ -0,0 +1,46 @@
+# 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: