blob: d27a2f45c2569a4d13f8286d95a15b72df2154b4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
# Maintainer: jakob <grandchild@gmx.net>
_pkgname=git-backdate
pkgname=${_pkgname}-git
pkgver=r30.8ba5a0e
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"
license=(custom)
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"
install -Dm644 LICENCE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}
|