r24.240cd0c

This commit is contained in:
jakob 2023-07-13 00:05:16 +02:00
commit d416d0c32d
2 changed files with 38 additions and 0 deletions

12
.SRCINFO Normal file
View file

@ -0,0 +1,12 @@
pkgbase = git-backdate-git
pkgdesc = Backdate a commit or range of commit to a date or range of dates
pkgver = r24.240cd0c
pkgrel = 1
url = https://github.com/rixx/git-backdate
arch = any
depends = python
depends = sed
source = git+https://github.com/rixx/git-backdate.git
sha256sums = SKIP
pkgname = git-backdate-git

26
PKGBUILD Normal file
View file

@ -0,0 +1,26 @@
# Maintainer: jakob <grandchild@gmx.net>
_pkgname=git-backdate
pkgname=${_pkgname}-git
pkgver=r24.240cd0c
pkgrel=1
pkgdesc="Backdate a commit or range of commit to a date or range of dates"
arch=(any)
url="https://github.com/rixx/git-backdate"
depends=(python sed)
source=("git+https://github.com/rixx/${_pkgname}.git")
sha256sums=('SKIP')
pkgver() {
cd "$srcdir/$_pkgname"
(
set -o pipefail
git describe --long --tags 2>/dev/null | sed 's/\([^-]*-g\)/r\1/;s/-/./g' ||
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
)
}
package() {
cd "$_pkgname"
install -Dm755 git-backdate "$pkgdir/usr/bin/git-backdate"
}