summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 741442a12b095ea8bb625a0bc488c97b183ce342 (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
# Maintainer: spikecodes <19519553+spikecodes@users.noreply.github.com>
pkgname=the-way
pkgver=0.10.0
pkgrel=1
pkgdesc="A command line code snippets manager"
arch=('any')
url="https://github.com/out-of-cheese-error/the-way"
license=("MIT")
makedepends=("git" "cargo")
provides=(${pkgname})
conflicts=(${pkgname})
source=("${pkgname}::git+${url}")
sha256sums=("SKIP")

pkgver() {
	cd "${pkgname}"
	( set -o pipefail
		printf "$(git describe --tags | awk -F- '{print $1}' | cut -c2-)"
	)
}

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

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