mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-04-12 19:36:48 +02:00
48 lines
1.2 KiB
Text
48 lines
1.2 KiB
Text
# Contributor: Jakub Jirutka <jakub@jirutka.cz>
|
|
# Maintainer: Jakub Jirutka <jakub@jirutka.cz>
|
|
pkgname=dum
|
|
pkgver=0.1.20
|
|
pkgrel=1
|
|
pkgdesc="An npm scripts runner written in Rust"
|
|
url="https://github.com/egoist/dum"
|
|
arch="aarch64 armhf armv7 ppc64le x86 x86_64" # blocked by rust/cargo
|
|
license="MIT"
|
|
makedepends="cargo cargo-auditable"
|
|
source="https://github.com/egoist/dum/archive/v$pkgver/dum-$pkgver.tar.gz
|
|
strip-env_logger-features.patch
|
|
"
|
|
|
|
|
|
prepare() {
|
|
default_prepare
|
|
|
|
# Optimize binary for size.
|
|
cat >> Cargo.toml <<-EOF
|
|
|
|
[profile.release]
|
|
codegen-units = 1
|
|
lto = true
|
|
opt-level = "s"
|
|
panic = "abort"
|
|
EOF
|
|
|
|
# No --locked, we have to update lockfile after patching Cargo.toml.
|
|
cargo fetch --target="$CTARGET"
|
|
}
|
|
|
|
build() {
|
|
cargo auditable build --frozen --release
|
|
}
|
|
|
|
check() {
|
|
cargo test --frozen
|
|
}
|
|
|
|
package() {
|
|
install -D -m755 target/release/dum -t "$pkgdir"/usr/bin/
|
|
}
|
|
|
|
sha512sums="
|
|
76d166fb16f7736479e1e8d62bd5ed8e2c988f3c52e476864afa31f9076a78dc76851c0cb22fc5a3541a56b601151b765c707cd5de75814f01dba06b16ed0d7a dum-0.1.20.tar.gz
|
|
79638c36725ec00d34780b57fb2851dbab81ae86975597f0f5bc16fb4a9cda256be5d2cea8177997d941e7332856b166d8613bf28376fd9dfa0b9d56647c14e9 strip-env_logger-features.patch
|
|
"
|