summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: d069a255a18dd758d4ade86915eb38e4320aa68b (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
# Maintainer: V1oL3nc <v1ol3nc@protonmail.com>
pkgname='fusion'
pkgver=0.3.0.6.gb096299
pkgrel=1
arch=('x86_64')
url="https://github.com/V1oL3nc/fusion"
pkgdesc="Simple wlan management tool with gnu-like syntax"
license=('GPL')
depends=('networkmanager')
makedepends=('cargo' 'git')
checkdepends=()
provides=('fusion')
conflicts=('fusion')
source=("$pkgname::git+https://github.com/V1oL3nc/fusion.git")
sha256sums=('SKIP')

prepare() {
	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"
	env CARGO_INCREMENTAL=0 cargo build --release --locked
}

check() {
	cd "$pkgname"
	env CARGO_INCREMENTAL=0 cargo check
}

package() {
	cd $pkgname
	install -D -m755 "target/release/fusion" "$pkgdir/usr/bin/fusion"
}