summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 87e78ff97411fe67da3c0699ba6622d40209a518 (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
# Maintainer: Chi_Tang <me@chitang.dev>
# Contributor:  <noreply@chitang.dev>
pkgname=viddy-git
pkgver=1.2.0.r0.gd596c0b
pkgrel=1
pkgdesc="A modern watch command"
arch=('any')
url="https://github.com/sachaos/viddy"
license=('MIT')
options=('!lto')
makedepends=('cargo')
provides=('viddy')
conflicts=('viddy' 'viddy-bin')
source=("git+https://github.com/sachaos/viddy.git")
md5sums=('SKIP')

pkgver() {
	cd "${srcdir}/viddy"
	git describe --long --tags | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
}

build() {
	cd "${srcdir}/viddy"
	cargo build --release --locked
}

package() {
	cd "${srcdir}/viddy"
	install -Dm755 "target/release/viddy" "${pkgdir}/usr/bin/viddy"
}