summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 9332c96535e349f8564cb55e8293bc7dbec7a68b (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
# Maintainer: countzero <?>
pkgname="rwc"
pkgver=r21.80fee50
pkgrel=1
pkgdesc="Analog of wc(1) written on Rust programming language."
arch=("x86_64")
url="https://codeberg.org/_void/rwc"
license=('MIT')
depends=('rust')
makedepends=('git')
source=("${pkgname}::git+https://codeberg.org/_void/rwc.git")
sha256sums=('SKIP')

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

build() {
  cd "$pkgname"
  make
}

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