# Contributor: Michał Polański <michal@polanski.me>
# Maintainer: Michał Polański <michal@polanski.me>
pkgname=mandown
pkgver=0.1.3
pkgrel=1
pkgdesc="Create man pages from markdown markup"
url="https://gitlab.com/kornelski/mandown"
license="Apache-2.0"
arch="all"
makedepends="cargo cargo-auditable"
source="https://gitlab.com/kornelski/mandown/-/archive/$pkgver/mandown-$pkgver.tar.gz
	cargo-lock.patch
	"
options="!check" # no test suite

prepare() {
	default_prepare

	cargo fetch --target="$CTARGET" --locked
}

build() {
	cargo auditable build --frozen --release
}

package() {
	install -Dm755 target/release/$pkgname -t "$pkgdir"/usr/bin/
}

sha512sums="
c0a51e03293286498923d0d0666950f0da140f1347d9953751102bff5b01b47c64fb3858bd2a311465ca97249a2228c0ec4f408089fe15f3a8429aa04e42d31f  mandown-0.1.3.tar.gz
45a91b437dd701fddac5d482f73a9b04e78c6f38dec476735e17ff39a5e02ab863bfee26ecb842c41b7b963bfe9b705fe3b5608d285a8db691790f3638d3ee86  cargo-lock.patch
"
