blob: 085deda824d594a044461a8bd70ff615d763114b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
# Maintainer: Timo Kettenbach
pkgname=taschenrechner
pkgver=1.5.0
pkgrel=1
pkgdesc="a cli-calculator written in rust"
url="https://gitlab.fem-net.de/mabl/taschenrechner"
license=("GPL-3.0")
arch=("any")
depends=()
makedepends=('rust')
provides=("taschenrechner")
conflicts=()
source=("https://gitlab.fem-net.de/mabl/taschenrechner/-/archive/${pkgver}/taschenrechner-${pkgver}.tar.gz")
sha256sums=('4cdf4f95ca1f83585a09e95a76d541e92367e0afcab4825beebb680527841dbc')
prepare() {
cd "$pkgname-$pkgver"
cargo fetch --locked --target "$CARCH-unknown-linux-gnu"
}
build() {
cd "$pkgname-$pkgver"
export RUSTUP_TOOLCHAIN=stable
export CARGO_TARGET_DIR=target
cargo build --release --frozen --all-targets
}
package() {
cd "$pkgname-$pkgver"
install -Dm755 target/release/taschenrechner -t "$pkgdir/usr/bin"
#install -Dm644 README.md -t "$pkgdir/usr/share/doc/$pkgname"
}
|