[arch-commits] Commit in (gitui gitui/repos gitui/trunk gitui/trunk/PKGBUILD)
Levente Polyak
anthraxx at archlinux.org
Fri Mar 12 20:54:08 UTC 2021
Date: Friday, March 12, 2021 @ 20:54:08
Author: anthraxx
Revision: 889774
addpkg: gitui 0.12.0-2
Added:
gitui/
gitui/repos/
gitui/trunk/
gitui/trunk/PKGBUILD
----------+
PKGBUILD | 35 +++++++++++++++++++++++++++++++++++
1 file changed, 35 insertions(+)
Added: gitui/trunk/PKGBUILD
===================================================================
--- gitui/trunk/PKGBUILD (rev 0)
+++ gitui/trunk/PKGBUILD 2021-03-12 20:54:08 UTC (rev 889774)
@@ -0,0 +1,35 @@
+# Maintainer: Levente Polyak <anthraxx[at]archlinux[dot]org>
+# Contributor: Simon Hauser <Simon-Hauser at outlook.de>
+# Contributor: Wesley Moore <wes at wezm.net>
+
+pkgname=gitui
+pkgver=0.12.0
+pkgrel=2
+pkgdesc='Blazing fast terminal-ui for git written in Rust'
+url='https://github.com/extrawurst/gitui'
+arch=('x86_64')
+license=('MIT')
+depends=('glibc' 'libgit2' 'libxcb')
+makedepends=('cargo' 'python') # xcb crate needs python
+source=("${url}/archive/v${pkgver}/${pkgname}-${pkgver}.tar.gz")
+sha256sums=('061536ecd2c9f9f52d4aecaece86e1e3c6fd1b88f25ce11483a783b800b9ec9e')
+b2sums=('822e0f441930fe585a35c098ee73cceb1b6d60dca8aef391d8cfa2264a302566e0830471be94f2a9ae8fefbb347dbf4bcc0cb787a48301e5abfa8767f32ad548')
+
+build() {
+ cd "${pkgname}-${pkgver}"
+ LIBGIT2_SYS_USE_PKG_CONFIG=1 cargo build --release --locked
+}
+
+check() {
+ cd "${pkgname}-${pkgver}"
+ LIBGIT2_SYS_USE_PKG_CONFIG=1 cargo test --release --locked
+}
+
+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:
More information about the arch-commits
mailing list