blob: 2161e1dbd81d11a6ae1d366db00f97621b6abcdf (
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
|
# Maintainer: willemw <willemw12@gmail.com>
pkgname=git-tools-git
pkgver=2020.09.r28.g12202fd
pkgrel=1
pkgdesc='Assorted git tools, including git-restore-mtime'
arch=('any')
url='https://github.com/MestreLion/git-tools'
license=('GPL3')
makedepends=('git' 'python') # 'bash'
provides=("${pkgname%-git}")
conflicts=("${pkgname%-git}")
source=("$pkgname::git+$url.git")
sha256sums=('SKIP')
pkgver() {
git -C $pkgname describe --long --tags | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
}
package() {
install -Dm644 $pkgname/README.md -t "$pkgdir/usr/share/${pkgname%-git}"
install -Dm644 $pkgname/man1/* -t "$pkgdir/usr/share/man/man1/"
install -Dm755 $pkgname/git-* -t "$pkgdir/usr/bin/"
}
|