Signed-off-by: Clayton Craft <craftyguy@postmarketos.org> Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/7830>
37 lines
874 B
Bash
37 lines
874 B
Bash
maintainer="Stefan Hansson <newbyte@postmarketos.org>"
|
|
pkgname=dint
|
|
pkgver=0.0.7
|
|
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="
|
|
271d373ebb7c61bd7f4afd71b465d5daea6192018fa3c302364244277a675327c5330aff0294143d220291ebb2b5d61a58097be26ca9f61f8bfc47d430cf3f1f dint-0.0.7.tar.bz2
|
|
"
|