summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: ac69cc4db65cb1b7c92a28e5f3e9ec5e27b17dcc (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
36
# Maintainer: 71e6fd52 <71e6fd52@gmail.com>

pkgname=quicssh-rs
pkgver=0.1.5
pkgrel=1
pkgdesc='A simple ssh server based on quic protocol'
url='https://github.com/oowl/quicssh-rs'
license=('MIT')
makedepends=('cargo')
depends=(
  gcc-libs
  glibc
)
arch=('x86_64')
source=("$pkgname-$pkgver.tar.gz::https://github.com/oowl/$pkgname/archive/v$pkgver.tar.gz")
b2sums=('c512cdf06c557a94fa41ac334d2cf5a12af6bdf34da08152fac5a1020f18e19690b8c588f54904073928e6c79c7860fe84d38219bb8495e365f07b3df33e8a5d')
options=(!debug !lto)

prepare() {
  cd "$pkgname-$pkgver"

  cargo fetch --locked --target "$(rustc -vV | sed -n 's/host: //p')"
}

build() {
  cd "$pkgname-$pkgver"

  export CARGO_TARGET_DIR=target
  cargo build --frozen --release
}

package() {
  cd "$pkgname-$pkgver"

  install -Dm0755 -t "$pkgdir/usr/bin/" "target/release/$pkgname"
}