Signed-off-by: Stefan Hansson <newbyte@postmarketos.org> Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/7821>
37 lines
874 B
Bash
37 lines
874 B
Bash
maintainer="Stefan Hansson <newbyte@postmarketos.org>"
|
|
pkgname=dint
|
|
pkgver=0.0.6
|
|
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
|
|
install -Dm644 deviceinfo_schema.toml \
|
|
-t "$pkgdir"/usr/share/dint
|
|
}
|
|
|
|
sha512sums="
|
|
99021bdfba800ed2d96bc56808ed4bb5d9ebfe3b254696af6f4610b5014e0cfd36f1088d7de678acc03945de550b84e4c8000df164b4d2771ebf977f231e0e1e dint-0.0.6.tar.bz2
|
|
"
|