blob: a444c00b8d874a0d6a0e47073da86d09a0649aee (
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.3.0.r0.g1b7493d
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"
}
|