summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 4c98ab8e261ceda6ab2b67ea691e68ebbefbbcc7 (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
# Maintainer: Peltoche <dev@halium.fr>
# Co-maintainer: Andrea Pascal <andrea@anodium.net>

pkgname="lsd-git"
_pkgname="lsd"
pkgver=0.16.0.471.gad25edc
pkgrel=2
pkgdesc="The next gen ls command"
arch=("i686" "x86_64" "armv6h" "armv7h")
url="https://github.com/Peltoche/lsd"
license=("Apache")
depends=("gcc-libs")
makedepends=("rust" "cargo" "git")
provides=("lsd")
conflicts=("lsd")
source=("$_pkgname::git+https://github.com/Peltoche/lsd.git")
sha384sums=("SKIP")

pkgver() {
    cd $_pkgname
    echo "$(grep '^version =' Cargo.toml|head -n1|cut -d\" -f2|cut -d\- -f1).$(git rev-list --count HEAD).g$(git rev-parse --short HEAD)"
}

build() {
    cd $_pkgname
    cargo build --release --locked
}

check() {
    cd $_pkgname
    cargo test --release --locked
}

package() {
    install -D -m755 $srcdir/$_pkgname/target/release/lsd $pkgdir/usr/bin/lsd
}