mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-06-07 14:04:43 +02:00
49 lines
1.2 KiB
Text
49 lines
1.2 KiB
Text
# Contributor: Matthias Ahouansou <matthias@ahouansou.cz>
|
|
# Maintainer: Matthias Ahouansou <matthias@ahouansou.cz>
|
|
pkgname=cargo-leptos
|
|
pkgver=0.2.33
|
|
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="
|
|
cb9b3258f4309c441c7cb62f7a275a9779b44dd59fefcd1ee880717976c8e237c2ecd2048702583d98157ba4d797090641194c92322768097c6150c7a22f2342 cargo-leptos-0.2.33.tar.gz
|
|
c1ba462f3e0d8d6af47cbb1d57a9b0c250b7b1d2dbd057d5826f656cfd2c971c6874328d0b90230c2577a4e0a26d35698acc5686ec09a62f253041f8b3eccd16 system-openssl.patch
|
|
"
|