summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 0af6766a20fd4e64259df1381534c503920b3768 (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
# Maintainer: Wesley Moore <wes@wezm.net>
_pkgname=fd
pkgname=fd-rs-git
pkgver=119
pkgrel=2
pkgdesc='A simple, fast and user-friendly alternative to find.'
arch=('i686' 'x86_64')
url="https://github.com/sharkdp/fd"
license=('MIT')
depends=()
conflicts=('fd' 'fd-rs')
provides=('fd-rs')
makedepends=('rust' 'cargo' 'git')
source=("git+https://github.com/sharkdp/fd.git")
md5sums=('SKIP')

pkgver() {
    cd "$srcdir/$_pkgname"
    git rev-list --count HEAD
}

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