summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: da4e00c7ad423e2b10ebce5958b4273a3d49e714 (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
# Maintainer: Jah Way <jahway603 at protonmail dot com>

pkgname=huhnitor
pkgver=2.0.0
pkgrel=2
pkgdesc='An intergalactic serial monitor for the ESP8266 Deauther v3'
url='https://github.com/SpacehuhnTech/Huhnitor'
arch=('x86_64')
license=('MIT')
makedepends=('rust')
source=("https://github.com/SpacehuhnTech/Huhnitor/archive/$pkgver.tar.gz")
sha256sums=('0fb71a75842a6e977fb079d350e8bbf587448b3c0dedae8f7158f44c28921ad6')

build() {
  tar xzvf $pkgver.tar.gz
  cd "Huhnitor-$pkgver"
  cargo build --release
}

package() {
  install -Dm755 "${srcdir}/Huhnitor-$pkgver/target/release/$pkgname" "${pkgdir}/opt/$pkgname/$pkgname"
  install -Dm644 "${srcdir}/Huhnitor-$pkgver/LICENSE" "${pkgdir}/usr/share/licenses/$pkgname/LICENSE"

  install -d "${pkgdir}/usr/bin"
  ln -s /opt/${pkgname}/${pkgname} "${pkgdir}/usr/bin"
}