summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: a751f59e73aaa387ce92d2ce823d7bc62f2ce702 (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
37
38
39
40
41
42
43
44
45
46
47
# Maintainer: Josh Meranda <joshmeranda@gmail.com>
_pkgname=wrash
pkgname=$_pkgname-git
pkgver=0.1.3
pkgrel=1
pkgdesc="A minimalistic command wrapper shell"
arch=(x86_64)
url="https://github.com/joshmeranda/wrash"
license=('MIT')
groups=()
depends=()
makedepends=("rust" "cargo" "git")
provides=("${_pkgname}")
conflicts=("${_pkgname}")
replaces=()
backup=()
options=()
install=
source=("$_pkgname::git+https://github.com/joshmeranda/wrash.git")
noextract=()
md5sums=('SKIP')

pkgver() {
	cd "$srcdir/$_pkgname"
    grep version ../wrash/Cargo.toml | cut -d \" -f 2
}

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

check() {
	cd "$srcdir/$_pkgname"
    cargo test -q -- --test-threads 1 --include-ignored
}

package() {
    cd "$srcdir/$_pkgname"
    install -D --mode 755 "target/release/$_pkgname" "$pkgdir/usr/bin/$_pkgname"
}

package() {
    cd "$srcdir/$_pkgname"
    install -Dm755 target/release/$_pkgname "$pkgdir/usr/bin/$_pkgname"
    install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}