summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 21a2be1642f0da81baddc3178b4d20f23916ae37 (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
# Maintainer: Luis Martinez <luis dot martinez at disroot dot org>
# Contributor: Lennard Hofmann <lennard dot hofmann at web dot de>

pkgname=fish-humantime-git
pkgver=1.0.0.r6.g53b2adb
pkgrel=2
pkgdesc='Fish plugin for making timestamps human-readable'
arch=('any')
url="https://github.com/jorgebucaran/humantime.fish"
license=('MIT')
groups=('fish-plugins')
depends=('fish')
makedepends=('git')
provides=('fish-humantime')
conflicts=('fish-humantime')
source=("$pkgname::git+$url?signed")
sha256sums=('SKIP')
validpgpkeys=('CA88B7CBEDCEE375F2376C53E54BA3C0E646DB30')

pkgver() {
	git -C "$pkgname" describe --long --tags | sed 's/-/.r/;s/-/./'
}

## tests did not return meaningful results

package() {
	cd "$pkgname"
	install -Dm 644 -t "$pkgdir/usr/share/fish/vendor_functions.d/" functions/humantime.fish
	install -Dm 644 -t "$pkgdir/usr/share/doc/$pkgname/" README.md
	install -Dm 644 -t "$pkgdir/usr/share/licenses/$pkgname/" LICENSE.md
}