Helps https://gitlab.postmarketos.org/postmarketOS/pmaports/-/issues/4333 Signed-off-by: Stefan Hansson <newbyte@postmarketos.org> Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8005>
35 lines
803 B
Bash
35 lines
803 B
Bash
maintainer="Stefan Hansson <newbyte@postmarketos.org>"
|
|
pkgname=dint
|
|
pkgver=0.1.1
|
|
pkgrel=0
|
|
pkgdesc="postmarketOS deviceinfo validator, linter, and documentation generator"
|
|
url="https://gitlab.postmarketos.org/postmarketOS/dint"
|
|
arch="all"
|
|
license="EUPL-1.2"
|
|
makedepends="cargo cargo-auditable"
|
|
source="https://gitlab.postmarketos.org/postmarketOS/dint/-/archive/$pkgver/dint-$pkgver.tar.bz2"
|
|
options="!pmb:crossdirect"
|
|
|
|
prepare() {
|
|
default_prepare
|
|
|
|
cargo fetch --locked
|
|
}
|
|
|
|
build() {
|
|
cargo auditable build --release --frozen
|
|
}
|
|
|
|
check() {
|
|
cargo test --frozen
|
|
}
|
|
|
|
package() {
|
|
install -Dm755 target/release/dint \
|
|
-t "$pkgdir"/usr/bin
|
|
}
|
|
|
|
sha512sums="
|
|
68755d14692cee35ca0d0be1d0bc3597d9390006634f555a9792ac330db4797080449cbfa2ffd4851fc8593042381f32cd326429f50cd62fd021577915ad8933 dint-0.1.1.tar.bz2
|
|
"
|