[arch-commits] Commit in git-warp-time/repos (2 files)
Caleb Maclennan
alerque at gemini.archlinux.org
Fri Feb 18 18:14:43 UTC 2022
Date: Friday, February 18, 2022 @ 18:14:42
Author: alerque
Revision: 1134031
archrelease: copy trunk to community-staging-x86_64
Added:
git-warp-time/repos/community-staging-x86_64/
git-warp-time/repos/community-staging-x86_64/PKGBUILD
(from rev 1134030, git-warp-time/trunk/PKGBUILD)
----------+
PKGBUILD | 41 +++++++++++++++++++++++++++++++++++++++++
1 file changed, 41 insertions(+)
Copied: git-warp-time/repos/community-staging-x86_64/PKGBUILD (from rev 1134030, git-warp-time/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD (rev 0)
+++ community-staging-x86_64/PKGBUILD 2022-02-18 18:14:42 UTC (rev 1134031)
@@ -0,0 +1,41 @@
+# Maintainer: Caleb Maclennan <caleb at alerque.com>
+
+pkgname=git-warp-time
+pkgver=0.4.4
+pkgrel=4
+pkgdesc='reset timestamps of Git repository files to the time of the last modifying commit'
+arch=(x86_64)
+url="https://github.com/alerque/$pkgname"
+license=(GPL3)
+depends=(libgit2
+ libgit2.so)
+makedepends=(cargo
+ git
+ jq)
+_archive="$pkgname-$pkgver"
+source=("$url/releases/download/v$pkgver/$_archive.tar.xz")
+sha256sums=('4e285a584756eb75703ac0dfdc5d27759d41cb8575ff0b0a66454429a1c4c021')
+
+prepare() {
+ cd "$_archive"
+ sed Makefile.am -i \
+ -e 's/cargo \(build\|install\|test\)/cargo --offline \1/'
+ autoreconf
+ cargo fetch --locked
+}
+
+build() {
+ cd "$_archive"
+ ./configure --prefix /usr
+ make
+}
+
+check() {
+ cd "$_archive"
+ make check
+}
+
+package() {
+ cd "$_archive"
+ make DESTDIR="$pkgdir" install
+}
More information about the arch-commits
mailing list