summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 6715d862d48262513571a87fb1e513af7c626540 (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
# Maintainer:  Dimitris Kiziridis <ragouel at outlook dot com>

pkgname=nucleon-git
pkgver=r13.48750fe
pkgrel=2
pkgdesc='Dynamic load balancer written in Rust'
arch=('i686' 'x86_64')
url='https://github.com/NicolasLM/nucleon'
license=('MIT')
provides=('nucleon')
depends=('gcc-libs')
makedepends=('rust')
source=("nucleon::git+${url}")
sha256sums=('SKIP')

pkgver() {
  cd "${srcdir}/nucleon"
  echo "r$(git rev-list --count HEAD).$(git rev-parse --short HEAD)"
}

build() {
  cd "${srcdir}/nucleon"
  cargo build --release
}

package() {
  cd "${srcdir}/nucleon"
  install -Dm644 LICENSE -t "${pkgdir}/usr/share/licenses/${pkgname}"
  install -Dm755 target/release/nucleon -t "${pkgdir}"/usr/bin 
}