summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: d25e49c4ca5d7da0be65d79adbb4a132e573d106 (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
# Maintainer: Kepler Team <info at kepler.mw>

pkgname=kepler-git
pkgver=r2268.d6a11656
pkgrel=1
pkgdesc='Kepler is an implementation of the MimbleWimble protocol enabling Confidential Assets'
arch=('x86_64')
url='https://github.com/keplernetwork/kepler'
license=('Apache')
depends=('ncurses')
makedepends=('clang' 'git' 'rust')
conflicts=('kepler')
provides=('kepler')
source=('git+https://github.com/keplernetwork/kepler.git')
sha256sums=('SKIP')

pkgver() {
    cd kepler

    printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

build() {
    cd kepler

    cargo build --release
}

package() {
    cd kepler

    install -Dm755 -t "${pkgdir}/usr/bin" target/release/kepler
}