Date: Thursday, January 6, 2022 @ 20:41:08
  Author: alerque
Revision: 1094876

archrelease: copy trunk to community-x86_64

Added:
  git-warp-time/repos/community-x86_64/
  git-warp-time/repos/community-x86_64/PKGBUILD
    (from rev 1094875, git-warp-time/trunk/PKGBUILD)

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

Copied: git-warp-time/repos/community-x86_64/PKGBUILD (from rev 1094875, 
git-warp-time/trunk/PKGBUILD)
===================================================================
--- community-x86_64/PKGBUILD                           (rev 0)
+++ community-x86_64/PKGBUILD   2022-01-06 20:41:08 UTC (rev 1094876)
@@ -0,0 +1,43 @@
+# Maintainer: Caleb Maclennan <[email protected]>
+
+pkgname=git-warp-time
+pkgver=0.4.4
+pkgrel=2
+pkgdesc='reset file timestamps to repo state'
+arch=(x86_64)
+url="https://github.com/alerque/$pkgname";
+license=(GPL3)
+depends=(libgit2
+         libgit2.so)
+makedepends=(bash-completion
+             cargo
+             git
+             jq
+             zsh)
+_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
+}

Reply via email to