[arch-commits] Commit in cargo-release/repos (2 files)

Kpcyrd kpcyrd at gemini.archlinux.org
Mon Aug 22 01:02:11 UTC 2022


    Date: Monday, August 22, 2022 @ 01:02:11
  Author: kpcyrd
Revision: 1274219

archrelease: copy trunk to community-staging-x86_64

Added:
  cargo-release/repos/community-staging-x86_64/
  cargo-release/repos/community-staging-x86_64/PKGBUILD
    (from rev 1274218, cargo-release/trunk/PKGBUILD)

----------+
 PKGBUILD |   33 +++++++++++++++++++++++++++++++++
 1 file changed, 33 insertions(+)

Copied: cargo-release/repos/community-staging-x86_64/PKGBUILD (from rev 1274218, cargo-release/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD	                        (rev 0)
+++ community-staging-x86_64/PKGBUILD	2022-08-22 01:02:11 UTC (rev 1274219)
@@ -0,0 +1,33 @@
+# Maintainer: kpcyrd <kpcyrd[at]archlinux[dot]org>
+
+pkgname=cargo-release
+pkgver=0.21.1
+pkgrel=2
+pkgdesc='Cargo subcommand "release": everything about releasing a rust crate'
+url='https://github.com/sunng87/cargo-release'
+arch=('x86_64')
+license=('MIT' 'APACHE')
+depends=('gcc-libs' 'libgit2' 'libssh' 'openssl' 'zlib')
+makedepends=('cargo' 'pkg-config')
+options=('!lto')
+source=(https://github.com/sunng87/${pkgname}/archive/v${pkgver}/${pkgname}-${pkgver}.tar.gz)
+b2sums=('d27f5b80bfc295ad3cafab4329fc6d835eb31bf70bc00719321066eecb55930aa7c4d8d895f4cb47f207f1b67803e5ca8b627941fa644aa8270f7dcd7e8bc465')
+
+prepare() {
+  cd ${pkgname}-${pkgver}
+  sed -i 's/"vendored-libgit2"//' Cargo.toml
+  cargo fetch --locked --target "$CARCH-unknown-linux-gnu"
+}
+
+build() {
+  cd ${pkgname}-${pkgver}
+  LIBSSH2_SYS_USE_PKG_CONFIG=1 cargo build --frozen --release
+}
+
+package() {
+  cd ${pkgname}-${pkgver}
+  install -Dm 755 target/release/${pkgname} "${pkgdir}/usr/bin/${pkgname}"
+  install -Dm 644 LICENSE-MIT -t "${pkgdir}/usr/share/licenses/${pkgname}"
+}
+
+# vim: ts=2 sw=2 et:



More information about the arch-commits mailing list