aports/testing/cargo-expand/APKBUILD
2025-03-25 14:39:31 +00:00

42 lines
1 KiB
Text

# Contributor: Matthias Ahouansou <matthias@ahouansou.cz>
maintainer="Matthias Ahouansou <matthias@ahouansou.cz>"
pkgname=cargo-expand
pkgver=1.0.104
pkgrel=0
pkgdesc="Cargo subcommand to show result of macro expansion"
url="https://github.com/dtolnay/cargo-expand"
arch="all"
license="MIT OR Apache-2.0"
makedepends="cargo-auditable"
depends="cargo"
subpackages="$pkgname-doc"
source="
$pkgname-$pkgver.tar.gz::https://github.com/dtolnay/cargo-expand/archive/refs/tags/$pkgver.tar.gz
"
options="net"
prepare() {
default_prepare
cargo fetch --target="$CTARGET" --locked
}
build() {
cargo auditable build --release --frozen
}
check() {
cargo test --frozen
}
package() {
install -Dm 755 target/release/cargo-expand "$pkgdir"/usr/bin/cargo-expand
for l in APACHE MIT
do
install -Dm 644 LICENSE-"$l" "$pkgdir"/usr/share/licenses/"$pkgname"/LICENSE-"$l"
done
}
sha512sums="
82de829acc8adad593d079fd5144d4474507b26850128644bbfefef59f219fbc0bafeb7232864cb912776a1b4b8a875ae8dd1315a51876789fe1e0cb87141d22 cargo-expand-1.0.104.tar.gz
"