[arch-commits] Commit in git-absorb/repos (2 files)
David Runge
dvzrv at gemini.archlinux.org
Sun Nov 21 14:09:27 UTC 2021
Date: Sunday, November 21, 2021 @ 14:09:26
Author: dvzrv
Revision: 1053004
archrelease: copy trunk to community-staging-x86_64
Added:
git-absorb/repos/community-staging-x86_64/
git-absorb/repos/community-staging-x86_64/PKGBUILD
(from rev 1053003, git-absorb/trunk/PKGBUILD)
----------+
PKGBUILD | 39 +++++++++++++++++++++++++++++++++++++++
1 file changed, 39 insertions(+)
Copied: git-absorb/repos/community-staging-x86_64/PKGBUILD (from rev 1053003, git-absorb/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD (rev 0)
+++ community-staging-x86_64/PKGBUILD 2021-11-21 14:09:26 UTC (rev 1053004)
@@ -0,0 +1,39 @@
+# Maintainer: Orhun Parmaksız <orhun at archlinux.org>
+# Contributor: AsamK <asamk at gmx.de>
+
+pkgname=git-absorb
+pkgver=0.6.6
+pkgrel=3
+pkgdesc="git commit --fixup, but automatic"
+arch=('x86_64')
+url="https://github.com/tummychow/git-absorb"
+license=('BSD')
+depends=('libgit2')
+makedepends=('cargo')
+source=("${pkgname}-${pkgver}.tar.gz::https://github.com/tummychow/git-absorb/archive/${pkgver}.tar.gz")
+sha256sums=('955069cc70a34816e6f4b6a6bd1892cfc0ae3d83d053232293366eb65599af2f')
+
+prepare() {
+ cd "${pkgname}-${pkgver}"
+ LIBGIT2_SYS_USE_PKG_CONFIG=1 cargo fetch --locked
+}
+
+build() {
+ cd "${pkgname}-${pkgver}"
+ LIBGIT2_SYS_USE_PKG_CONFIG=1 cargo build --release --frozen
+}
+
+check() {
+ cd "${pkgname}-${pkgver}"
+ LIBGIT2_SYS_USE_PKG_CONFIG=1 cargo test --frozen
+}
+
+package() {
+ cd "${pkgname}-${pkgver}"
+ install -Dm 755 target/release/"${pkgname}" -t "${pkgdir}/usr/bin/"
+ install -Dm 644 "README.md" "${pkgdir}/usr/share/doc/${pkgname}/README.md"
+ install -Dm 644 "LICENSE.md" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+ install -Dm 644 "Documentation/${pkgname}.1" "${pkgdir}/usr/share/man/man1/${pkgname}.1"
+}
+
+# vim: ts=2 sw=2 et:
More information about the arch-commits
mailing list