blob: dba5edca480f953370963fd2d7ca235f84de616b (
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
37
|
pkgname=banano-vanity
pkgver=1.0
pkgrel=4
pkgdesc="A vanity address generator for banano cryptocurrency"
arch=('x86_64')
source=("https://github.com/flammenderdrache/banano-vanity/archive/refs/tags/${pkgver}.zip")
url="https://github.com/flammenderdrache/banano-vanity"
sha512sums=('SKIP')
makedepends=(
'rust'
'cargo'
'git'
'ocl-icd'
)
prepare() {
cd "${srcdir}/${pkgname}-${pkgver}"
cargo fetch --locked
}
build() {
cd "${srcdir}/${pkgname}-${pkgver}"
cargo build --release --locked
}
check() {
cd "${srcdir}/${pkgname}-${pkgver}"
cargo test --release --locked
}
package() {
#cd "${srcdir}/${pkgname}-${pkgver}"
cd "${srcdir}/${pkgname}-${pkgver}"
install -Dm 755 "target/release/${pkgname}" "${pkgdir}/usr/bin/${pkgname}"
}
|