blob: d1cde2d62f5ce31ab18f7069e6cc1b10609b388e (
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
38
39
40
41
|
# Maintainer: Opencreek Technogoly UG <hannes@opencreek.tech>
pkgname=creekey-git
pkgver=0.1.0_r143.30b1d39
pkgrel=1
makedepends=('git' 'cargo')
arch=('i686' 'x86_64' 'armv6h' 'armv7h')
pkgdesc="Story your Private Keys on your Phone!"
# source=("$pkgname-$pkgver.tar.gz::https://static.crates.io/crates/$pkgname/$pkgname-$pkgver.crate")
source=("git+https://github.com/opencreek/creekey-cli.git#branch=main")
url="https://creekey.io"
license=('UNLICENSED')
pkgver() {
cd "creekey-cli"
printf "0.1.0_r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
prepare() {
cd "creekey-cli"
cargo fetch --locked --target "$CARCH-unknown-linux-gnu"
}
build() {
cd "creekey-cli"
export RUSTUP_TOOLCHAIN=stable
export CARGO_TARGET_DIR=target
cargo build --frozen --release --all-features
}
package() {
cd "creekey-cli"
find target/release \
-maxdepth 1 \
-executable \
-type f \
-exec install -Dm0755 -t "$pkgdir/usr/bin/" {} +
install -Dm644 "src/unix/creekey.service" "${pkgdir}/usr/lib/systemd/user/creekey.service"
}
sha256sums=('SKIP')
|