summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 90d1e004d3d4c295fbf5e581782aa90ea18cdc58 (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
# Maintainer : Simon <viknesh.adi@gmail.com>
pkgname=bltui
pkgver=0.1.3
pkgrel=1
pkgdesc="Bluetooth TUI"
arch=("x86_64")
license=("MIT")
url="https://github.com/simonadi/bltui"
depends=("bluez")
makedepends=("cargo" "git")
provides=("bltui")
conflicts=("bltui")
source=("git+https://github.com/simonadi/bltui.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"
}