mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-04-12 19:36:48 +02:00
51 lines
1.5 KiB
Text
51 lines
1.5 KiB
Text
# Contributor: Matthias Ahouansou <matthias@ahouansou.cz>
|
|
# Maintainer: Matthias Ahouansou <matthias@ahouansou.cz>
|
|
pkgname=leptosfmt
|
|
pkgver=0.1.33
|
|
_prettypleasegitrev=c7591dabc25f75d58fbedc0d7adff45804bf1b78
|
|
pkgrel=0
|
|
pkgdesc="A formatter for the leptos view! macro"
|
|
url="https://github.com/bram209/leptosfmt"
|
|
# loongarch64: blocked by libc crate
|
|
arch="all !loongarch64"
|
|
license="MIT OR Apache-2.0"
|
|
makedepends="
|
|
cargo
|
|
cargo-auditable
|
|
"
|
|
subpackages="$pkgname-doc"
|
|
source="
|
|
$pkgname-$pkgver.tar.gz::https://github.com/bram209/leptosfmt/archive/refs/tags/$pkgver.tar.gz
|
|
prettyplease-$_prettypleasegitrev.tar.gz::https://github.com/bram209/prettyplease/archive/$_prettypleasegitrev.tar.gz
|
|
"
|
|
options="net"
|
|
|
|
prepare() {
|
|
default_prepare
|
|
|
|
mv -T "$srcdir"/prettyplease-"$_prettypleasegitrev" "$builddir"/prettyplease
|
|
|
|
cargo fetch --target="$CTARGET" --locked
|
|
}
|
|
|
|
build() {
|
|
cargo auditable build --release --frozen
|
|
}
|
|
|
|
check() {
|
|
cargo test --frozen
|
|
}
|
|
|
|
package() {
|
|
install -Dm 755 target/release/leptosfmt "$pkgdir"/usr/bin/leptosfmt
|
|
|
|
for l in APACHE MIT
|
|
do
|
|
install -Dm 644 LICENSE-"$l" "$pkgdir"/usr/share/licenses/"$pkgname"/LICENSE-"$l"
|
|
done
|
|
}
|
|
|
|
sha512sums="
|
|
944690bffd8acc2c8d4f3551a4b48fba5728e558dfbad975462f7631a48a85be909ce9d0ded5a77700db4432988e1f5bfd2d4fdbf8f33693584b272645f7c843 leptosfmt-0.1.33.tar.gz
|
|
a535c0abbae7e1f3a9fa811cea12f71e185bb7d22632b6088e073579bc9890cb5179d0b24b67218c222affabd3c8116a351a1bb127b8fc0ccdc660a4075ca15f prettyplease-c7591dabc25f75d58fbedc0d7adff45804bf1b78.tar.gz
|
|
"
|