56 lines
1.1 KiB
Bash
56 lines
1.1 KiB
Bash
# Maintainer: Einhard Leichtfuß <alguien@respiranto.de>
|
|
|
|
_reponame=FS-Protokoll
|
|
_pkgname="${_reponame,,}"
|
|
_builtname="${_pkgname/-/_}"
|
|
pkgname="${_pkgname}"
|
|
pkgver=0.7.0
|
|
pkgrel=1
|
|
pkgdesc="Convert FS meeting protocols"
|
|
arch=('any')
|
|
url="https://www.fs-infmath.uni-kiel.de/git/FS-InfMath/${_reponame}"
|
|
license=('Apache') # Or MIT (see fs_protokoll_{bin,lib}/Cargo.toml).
|
|
depends=()
|
|
makedepends=('git' 'cargo')
|
|
checkdepends=('cargo')
|
|
provides=("$_pkgname")
|
|
conflicts=("$_pkgname")
|
|
source=("git+${url}.git#tag=version-${pkgver}")
|
|
sha512sums=('SKIP')
|
|
|
|
|
|
prepare()
|
|
{
|
|
cd "$_reponame"
|
|
cargo fetch --locked --target "$CARCH-unknown-linux-gnu"
|
|
}
|
|
|
|
|
|
build()
|
|
{
|
|
cd "$_reponame"
|
|
export RUSTUP_TOOLCHAIN=stable
|
|
export CARGO_TARGET_DIR=target
|
|
cargo build --frozen --release --all-features
|
|
}
|
|
|
|
|
|
check()
|
|
{
|
|
cd "$_reponame"
|
|
export RUSTUP_TOOLCHAIN=stable
|
|
cargo test --frozen --all-features
|
|
}
|
|
|
|
|
|
package()
|
|
{
|
|
cd "$_reponame"
|
|
install -Dm0755 \
|
|
"target/release/${_builtname}" \
|
|
"${pkgdir}/usr/lib/${_pkgname}/${_pkgname}"
|
|
|
|
install -Dm0755 -t "${pkgdir}/usr/share/doc/${_pkgname}" \
|
|
README.md \
|
|
Changelog.md
|
|
}
|