summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 84df5261213534e80b699e115450ffbbdc66f25b (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-wallet-git
pkgver=r179.1f298ce
pkgrel=1
pkgdesc='Kepler Wallet'
arch=('x86_64')
url='https://github.com/keplernetwork/kepler-wallet'
license=('Apache')
depends=('ncurses')
makedepends=('clang' 'git' 'rust')
conflicts=('kepler-wallet')
provides=('kepler-wallet')
source=('git+https://github.com/keplernetwork/kepler-wallet.git')
sha256sums=('SKIP')

pkgver() {
    cd kepler-wallet

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

build() {
    cd kepler-wallet

    cargo build --release
}

package() {
    cd kepler-wallet

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