blob: 89c65a463dea991ad2e22df6588cb1b942a9fcc5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
_pkgname=calc
pkgname=coriolinus-${_pkgname}
pkgver=0.4.0
pkgrel=1
pkgdesc='Rust command line calculator'
url="https://github.com/coriolinus/${_pkgname}"
arch=('x86_64')
license=('GPL3')
makedepends=('rust')
source=("${url}/archive/v${pkgver}.tar.gz")
sha256sums=('1162441f3e9bd5fc86aa6c61f64ad8f7b5b679ab89275afce6fd7b0e99c7f3f7')
build() {
cd "${_pkgname}-${pkgver}"
cargo build --release --locked --all-features --target-dir=target
}
package() {
cd "${_pkgname}-${pkgver}"
install -Dm 755 target/release/${_pkgname} -t ${pkgdir}/usr/bin
install -Dm 644 README.md CHANGELOG.md -t ${pkgdir}/usr/share/doc/${pkgname}
}
|