mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-06-04 12:26:24 +02:00
34 lines
856 B
Text
34 lines
856 B
Text
# Maintainer: crapStone <me@crapstone.dev>
|
|
pkgname=mdbook-admonish
|
|
pkgver=1.19.0
|
|
pkgrel=0
|
|
pkgdesc="A preprocessor for mdbook to add Material Design admonishments"
|
|
url="https://github.com/tommilligan/mdbook-admonish"
|
|
arch="all"
|
|
license="MIT"
|
|
depends="mdbook"
|
|
makedepends="cargo cargo-auditable"
|
|
source="$pkgname-$pkgver.tar.gz::https://github.com/tommilligan/mdbook-admonish/archive/refs/tags/v$pkgver.tar.gz"
|
|
options="net" # cargo fetch
|
|
|
|
prepare() {
|
|
default_prepare
|
|
|
|
cargo fetch --target="$CTARGET" --locked
|
|
}
|
|
|
|
build() {
|
|
cargo auditable build --frozen --release
|
|
}
|
|
|
|
check() {
|
|
cargo test --frozen
|
|
}
|
|
|
|
package() {
|
|
install -D -m755 target/release/$pkgname -t "$pkgdir"/usr/bin/
|
|
}
|
|
|
|
sha512sums="
|
|
244baeb04a91db8367c46301e03aed97bcefe489e63caefb67b0de203fa88920863718fbf4855b2990b41a721dfbec9ceb5f9ebafa2c2d3651f52f997afb0a28 mdbook-admonish-1.19.0.tar.gz
|
|
"
|