blob: a15ed3636564ad4bce1666c2f05558edb13a10e5 (
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
29
30
31
32
33
34
35
36
37
|
# Maintainer: Matus Benko <matus.benko@gmail.com>
pkgname=git-delta-git
_pkgname=delta
pkgver=r.319.f89300a
pkgrel=1
pkgdesc="A syntax-highlighting pager for git"
arch=('any')
url="https://github.com/dandavison/delta"
license=('custom')
depends=()
makedepends=('git' 'rust')
provides=('delta')
source=(git+https://github.com/dandavison/$_pkgname.git)
md5sums=('SKIP')
pkgver() {
cd "$srcdir/$_pkgname"
printf "r.%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
build() {
cd "$srcdir/$_pkgname"
cargo build --release --locked
}
check() {
cd "$srcdir/$_pkgname"
cargo test --release --locked
}
package() {
cd "$srcdir/$_pkgname"
install -Dm755 "target/release/$_pkgname" -t "$pkgdir/usr/bin"
install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}
|