Date: Wednesday, December 14, 2022 @ 15:14:16
Author: kpcyrd
Revision: 1359052
archrelease: copy trunk to community-x86_64
Added:
gitoxide/repos/community-x86_64/
gitoxide/repos/community-x86_64/PKGBUILD
(from rev 1359051, gitoxide/trunk/PKGBUILD)
----------+
PKGBUILD | 35 +++++++++++++++++++++++++++++++++++
1 file changed, 35 insertions(+)
Copied: gitoxide/repos/community-x86_64/PKGBUILD (from rev 1359051,
gitoxide/trunk/PKGBUILD)
===================================================================
--- community-x86_64/PKGBUILD (rev 0)
+++ community-x86_64/PKGBUILD 2022-12-14 15:14:16 UTC (rev 1359052)
@@ -0,0 +1,35 @@
+# Maintainer: kpcyrd <kpcyrd[at]archlinux[dot]org>
+
+pkgname=gitoxide
+pkgver=0.19.0
+pkgrel=2
+pkgdesc="An idiomatic, lean, fast & safe pure Rust implementation of Git"
+url='https://github.com/Byron/gitoxide'
+arch=('x86_64')
+license=('MIT' 'Apache-2.0')
+depends=('libssl.so')
+makedepends=('cargo' 'cmake')
+options=(!lto)
+source=(https://github.com/Byron/${pkgname}/archive/v${pkgver}/${pkgname}-${pkgver}.tar.gz)
+sha256sums=('da306eb250abc7152f39a7f148a7655b2d99beaf8a756a526ec93b973529f9a9')
+b2sums=('2db6ed7c20b2b7ed328a2b7a7247bb216a9ed5310801c6ac6124e0326c026425a757dca9fc8d9535c331c4672adfe532bf2a06c8af1928ee4fc2e02a7e0be7d4')
+
+prepare() {
+ cd "${pkgname}-${pkgver}"
+ cargo fetch --locked --target "$CARCH-unknown-linux-gnu"
+}
+
+build() {
+ cd ${pkgname}-${pkgver}
+ OPENSSL_NO_VENDOR=1 \
+ cargo build --frozen --release
+}
+
+package() {
+ cd ${pkgname}-${pkgver}
+ install -Dm 755 -t "${pkgdir}/usr/bin" \
+ target/release/gix \
+ target/release/ein
+}
+
+# vim: ts=2 sw=2 et: