summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: a0db9b92a17643c54e6657de7cfb59f6a799ac2d (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
# Maintainer: j-james <jj@j-james.me>
pkgname=thesauromatic-git
_pkgname=thesauromatic
pkgver=v0.0.3.r27.gb5fdfd2
pkgrel=1
pkgdesc="A static, offline, command-line thesaurus."
arch=('any')
url="https://github.com/cjrh/thesauromatic"
license=('AGPL')
makedepends=('rust')
provides=('thesauromatic')
source=(git+"https://github.com/cjrh/$_pkgname")
sha256sums=('SKIP')

pkgver() {
	cd "$_pkgname"
	git describe --long | sed 's/\([^-]*-g\)/r\1/;s/-/./g'	
}

build() {
	cd "$_pkgname"
	cargo build --release
}

package() {
	cd "$_pkgname"
	install -Dm755 "target/release/thesauromatic" "$pkgdir/usr/bin/thesauromatic"
}