Date: Saturday, March 18, 2023 @ 19:02:17
  Author: alerque
Revision: 1423031

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

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

Copied: git-warp-time/repos/community-staging-x86_64/PKGBUILD (from rev 
1423030, git-warp-time/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD                           (rev 0)
+++ community-staging-x86_64/PKGBUILD   2023-03-18 19:02:17 UTC (rev 1423031)
@@ -0,0 +1,41 @@
+# Maintainer: Caleb Maclennan <[email protected]>
+
+pkgname=git-warp-time
+pkgver=0.4.9
+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.so)
+makedepends=(cargo
+             git
+             jq)
+_archive="$pkgname-$pkgver"
+source=("$url/releases/download/v$pkgver/$_archive.tar.xz")
+sha256sums=('c832055b053203de4c8177c638bf143d440366a8f097e46615fc2c6e7f06d1e2')
+
+prepare() {
+       cd "$_archive"
+       sed Makefile.am -i \
+               -e 's/cargo \(build\|install\|test\)/cargo --offline \1/'
+       autoreconf
+       cargo fetch --locked
+}
+
+build() {
+       cd "$_archive"
+       CFLAGS+=" -ffat-lto-objects"
+       ./configure --prefix /usr
+       make
+}
+
+check() {
+       cd "$_archive"
+       make check
+}
+
+package() {
+       cd "$_archive"
+       make DESTDIR="$pkgdir" install
+}

Reply via email to