mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-04-13 06:06:44 +02:00
46 lines
1.2 KiB
Text
46 lines
1.2 KiB
Text
# Maintainer: omni <omni+alpine@hack.org>
|
|
maintainer="omni <omni+alpine@hack.org>"
|
|
pkgname=lurk
|
|
pkgver=0.3.9
|
|
pkgrel=0
|
|
pkgdesc="A pretty simple alternative to strace"
|
|
url="https://github.com/JakWai01/lurk"
|
|
arch="x86_64" # linmited by lurk
|
|
license="MIT OR Apache-2.0"
|
|
depends="libgcc"
|
|
makedepends="cargo cargo-auditable"
|
|
subpackages="$pkgname-doc"
|
|
source="$pkgname-$pkgver.tar.gz::https://github.com/JakWai01/lurk/archive/refs/tags/v$pkgver.tar.gz
|
|
use-uzers.patch
|
|
"
|
|
|
|
prepare() {
|
|
default_prepare
|
|
cargo fetch --locked
|
|
}
|
|
|
|
build() {
|
|
cargo auditable build --release --frozen
|
|
}
|
|
|
|
check() {
|
|
# cargo test --frozen
|
|
# for now, run this instead
|
|
#./target/release/lurk -C /bin/ls
|
|
# the above doesn't seem to work in CI
|
|
./target/release/lurk --version
|
|
}
|
|
|
|
package() {
|
|
install -Dm0755 target/release/lurk -t "$pkgdir"/usr/bin
|
|
|
|
install -Dm0644 -t "$pkgdir"/usr/share/doc/"$pkgname" \
|
|
README.md
|
|
install -Dm0644 -t "$pkgdir"/usr/share/licenses/"$pkgname" \
|
|
LICENSE*
|
|
}
|
|
|
|
sha512sums="
|
|
375916bb1ef5e64c99623e09b4f73a7126978688341ab1ec108d87865ed25327b1df196c3137c21d249a488533a00f57e461049ee25fcd13fa3521151c3425c1 lurk-0.3.9.tar.gz
|
|
3bb8d816d6565f2e282978bc6025f263aa2d8dabdf87b88b27f51aa89d0ff5f3edd7df15d288bcb1709287ef418a1e4abf5d81dcc7b9903e63e214506b53d341 use-uzers.patch
|
|
"
|