chore: update to v0.1.0

This commit is contained in:
oritwoen 2025-12-14 16:24:20 +00:00
commit 54843e8cc4
2 changed files with 53 additions and 0 deletions

18
.SRCINFO Normal file
View file

@ -0,0 +1,18 @@
pkgbase = kangaroo
pkgdesc = Pollard's Kangaroo ECDLP solver for secp256k1 using Vulkan/Metal/DX12 compute
pkgver = 0.1.0
pkgrel = 1
url = https://github.com/oritwoen/kangaroo
arch = x86_64
license = MIT
makedepends = git
makedepends = rust
makedepends = vulkan-headers
depends = gcc-libs
depends = glibc
depends = vulkan-icd-loader
optdepends = vulkan-validation-layers: for debugging
source = git+https://github.com/oritwoen/kangaroo.git#tag=v0.1.0
sha256sums = SKIP
pkgname = kangaroo

35
PKGBUILD Normal file
View file

@ -0,0 +1,35 @@
pkgname=kangaroo
pkgver=0.1.0
pkgrel=1
pkgdesc="Pollard's Kangaroo ECDLP solver for secp256k1 using Vulkan/Metal/DX12 compute"
arch=('x86_64')
url="https://github.com/oritwoen/kangaroo"
license=('MIT')
depends=('gcc-libs' 'glibc' 'vulkan-icd-loader')
makedepends=('git' 'rust' 'vulkan-headers')
optdepends=('vulkan-validation-layers: for debugging')
source=("git+https://github.com/oritwoen/kangaroo.git#tag=v$pkgver")
sha256sums=('SKIP')
prepare() {
cd "$pkgname"
cargo fetch --locked --target "$(rustc --print host-tuple)"
}
build() {
cd "$pkgname"
export CFLAGS+=" -ffat-lto-objects"
cargo build --release --locked --offline
}
check() {
cd "$pkgname"
cargo test --locked --offline
}
package() {
cd "$pkgname"
install -Dm755 "target/release/$pkgname" "$pkgdir/usr/bin/$pkgname"
install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
install -Dm644 README.md "$pkgdir/usr/share/doc/$pkgname/README.md"
}