summaryrefslogtreecommitdiff
path: root/coriolinus-calc/PKGBUILD
blob: bbfad1b8f1fa517418e80dd0b7b1028686ff246c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
pkgbase=calc
pkgname=coriolinus-${pkgbase}
pkgver=0.3.0
pkgrel=1
pkgdesc='Rust command line calculator'
url="https://github.com/coriolinus/${pkgbase}"
arch=('x86_64')
license=('GPL3')
makedepends=('rust')
source=("${url}/archive/v${pkgver}.tar.gz")
sha256sums=('a1ea19acb41508129de3508a87b6d68743b8e5696bb34bada09ad706fd2aa63b')

build() {
    cd "${pkgbase}-${pkgver}"
    cargo build --release --locked --all-features --target-dir=target
}

package() {
    cd "${pkgbase}-${pkgver}"
    install -Dm 755 target/release/${pkgbase} -t ${pkgdir}/usr/bin
    install -Dm 644 README.md CHANGELOG.md -t ${pkgdir}/usr/share/doc/${pkgname}
}