summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 7ca7086c68e77e04bfa69f22111c8d9dd6718a4b (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
# Maintainer: xezo360hye <xezo360hye@gmail.com>
# Contributor: nate-sys <?>
_pkgname="muc"
pkgname="${_pkgname}-git"
pkgver=r58.1c7b988
pkgrel=1
pkgdesc="Visualize your most used commands"
arch=('any')
url="https://github.com/nate-sys/muc"
license=('GPL3')
depends=('rust')
makedepends=('git')
provides=('muc')
source=("${_pkgname}::git+https://github.com/nate-sys/muc.git")
sha256sums=('SKIP')

pkgver() {
	cd "${srcdir}/${_pkgname}"
	printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

package() {
	cd "${srcdir}/${_pkgname}"
	cargo build --release
	install -Dm755 "target/release/${_pkgname}" -t "${pkgdir}/usr/bin"
}