summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 8a6a1586fc3e37a8780861da73e961e467466d2f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
pkgname=kalc
pkgver=1.1.3
pkgrel=1
pkgdesc="a complex numbers, 2d/3d graphing, arbitrary precision, vector/matrix, cli calculator with real-time output and support for units"
arch=('any')
url="https://github.com/bgkillas/kalc"
license=('GPL3')
makedepends=('rust' 'diffutils' 'gcc' 'm4' 'make')
source=("$pkgname-$pkgver.tar.gz::https://github.com/bgkillas/kalc/archive/refs/tags/v$pkgver.tar.gz")
sha512sums=('2f96b627715e09d7170decdaadfce3428d0f0dbae71c0338afa20c5e056d56021c3ec04f68c6f22b7e703ab65276c20d1043f72de5fafad4affcb5a85251a44b')
build()
{
  cd "$srcdir/$pkgname-$pkgver"
  cargo build --release
}
package()
{
  cd "$srcdir/$pkgname-$pkgver"
  install -D target/release/kalc "$pkgdir/usr/bin/kalc"
}