Date: Friday, August 19, 2022 @ 08:47:37
  Author: felixonmars
Revision: 1269693

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 1269692, git-warp-time/trunk/PKGBUILD)

----------+
 PKGBUILD |   41 +++++++++++++++++++++++++++++++++++++++++
 1 file changed, 41 insertions(+)

Copied: git-warp-time/repos/community-staging-x86_64/PKGBUILD (from rev 
1269692, git-warp-time/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD                           (rev 0)
+++ community-staging-x86_64/PKGBUILD   2022-08-19 08:47:37 UTC (rev 1269693)
@@ -0,0 +1,41 @@
+# Maintainer: Caleb Maclennan <[email protected]>
+
+pkgname=git-warp-time
+pkgver=0.4.5
+pkgrel=2
+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=('1889e7f3b8db27f9524caec06af574e2bdc9d20567c5cc6eea810ee82f095e03')
+
+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
+}

Reply via email to