summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 4d7d5532ffbd42e4393940de0deeec2b8eed4c1d (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 : Simon <viknesh.adi@gmail.com>
_pkgname=bltui
pkgname=${_pkgname}-git
pkgver=0.1.3
pkgrel=2
pkgdesc="Bluetooth TUI"
arch=("x86_64")
license=("MIT")
url="https://github.com/simonadi/bltui"
depends=("bluez")
makedepends=("cargo" "git")
provides=("bltui")
conflicts=("bltui")
source=("${_pkgname}::git+${url}.git")
sha256sums=('SKIP')

prepare() {
    cd $_pkgname
    cargo fetch --locked --target "$CARCH-unknown-linux-gnu"
}

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

check() {
    cd $_pkgname
    cargo check --frozen --release
}

package() {
    cd $_pkgname
    install -Dm0755 -t "$pkgdir/usr/bin/" "target/release/$_pkgname"
}