aports/testing/cargo-leptos/APKBUILD
2025-03-23 13:50:02 +00:00

49 lines
1.2 KiB
Text

# Contributor: Matthias Ahouansou <matthias@ahouansou.cz>
# Maintainer: Matthias Ahouansou <matthias@ahouansou.cz>
pkgname=cargo-leptos
pkgver=0.2.32
pkgrel=0
pkgdesc="Build tool for Leptos"
url="https://leptos.dev"
arch="x86_64 aarch64" # dart-sass
license="MIT"
makedepends="
cargo-auditable
openssl-dev
"
depends="
binaryen
cargo
cargo-generate
dart-sass
"
subpackages="$pkgname-doc"
source="
$pkgname-$pkgver.tar.gz::https://github.com/leptos-rs/cargo-leptos/archive/refs/tags/v$pkgver.tar.gz
system-openssl.patch
"
options="net"
prepare() {
default_prepare
cargo fetch --target="$CTARGET" --locked
}
build() {
cargo auditable build --release --frozen --features no_downloads
}
check() {
cargo test --frozen --features no_downloads
}
package() {
install -Dm 755 target/release/cargo-leptos "$pkgdir"/usr/bin/cargo-leptos
install -Dm 644 LICENSE "$pkgdir"/usr/share/licenses/"$pkgname"/LICENSE
}
sha512sums="
27b2cb39bc681133a6576070f03753d11d1755ef0a3f793b27ef4558e8f8b1d29ee3129fa0d42455a89096ec76781be5cf4f5e2c23987d17e19dd338ded880e5 cargo-leptos-0.2.32.tar.gz
4bdf32b34ddd27e2d755f0f3680a08501c90c60bf56d52bfdbdbbf7a8f8defb06f398e519707db1edd1a65342c0c1f736968e1d0d3afc8b86275440937114e9b system-openssl.patch
"