blob: abde959f7897868275eafbe067bca03206288405 (
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.5.0.11.ge7e1c45
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"
}
|