Date: Saturday, March 18, 2023 @ 18:45:25
Author: alerque
Revision: 1423017
archrelease: copy trunk to community-staging-x86_64
Added:
gitui/repos/community-staging-x86_64/
gitui/repos/community-staging-x86_64/PKGBUILD
(from rev 1423016, gitui/trunk/PKGBUILD)
----------+
PKGBUILD | 43 +++++++++++++++++++++++++++++++++++++++++++
1 file changed, 43 insertions(+)
Copied: gitui/repos/community-staging-x86_64/PKGBUILD (from rev 1423016,
gitui/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD (rev 0)
+++ community-staging-x86_64/PKGBUILD 2023-03-18 18:45:25 UTC (rev 1423017)
@@ -0,0 +1,43 @@
+# Maintainer: Levente Polyak <anthraxx[at]archlinux[dot]org>
+# Maintainer: Caleb Maclennan <[email protected]>
+# Contributor: Simon Hauser <[email protected]>
+# Contributor: Wesley Moore <[email protected]>
+
+pkgname=gitui
+pkgver=0.22.1
+pkgrel=2
+pkgdesc='Blazing fast terminal-ui for git written in Rust'
+url='https://github.com/extrawurst/gitui'
+arch=('x86_64')
+license=('MIT')
+# work around two libssl.so providers being in the repos by only depending on
package for now
+depends=('gcc-libs' 'libgit2.so' 'libxcb' 'openssl' 'zlib')
+makedepends=('cargo' 'python') # xcb crate needs python
+source=("${url}/archive/v${pkgver}/${pkgname}-${pkgver}.tar.gz")
+sha256sums=('285e86c136ee7f410fdd52c5284ccf0d19011cc5f7709e5e10bb02f439a218ea')
+b2sums=('10efce18cfe2a4a7de348da5c6ebdb230d333524a48e7a086546ed8313b0301c886577f909bafe0851986a1070f44fad76eabf1479c1e733717857d8f78b4fed')
+
+prepare() {
+ cd "${pkgname}-${pkgver}"
+ cargo fetch --locked --target "$CARCH-unknown-linux-gnu"
+}
+
+build() {
+ cd "${pkgname}-${pkgver}"
+ CFLAGS+=" -ffat-lto-objects"
+ cargo build --frozen --release
+}
+
+check() {
+ cd "${pkgname}-${pkgver}"
+ cargo test --frozen
+}
+
+package() {
+ cd "${pkgname}-${pkgver}"
+ install -Dm 755 target/release/gitui -t "${pkgdir}/usr/bin/"
+ install -Dm 644 {KEY_CONFIG,README,THEMES}.md -t
"${pkgdir}/usr/share/doc/${pkgname}"
+ install -Dm 644 LICENSE.md -t "${pkgdir}/usr/share/licenses/${pkgname}"
+}
+
+# vim: ts=2 sw=2 et: