summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 21dd6d42a020e378abde38e918566e8ed86adbaa (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: Kirill 'fidelicura' Bezuglyi <fidelicura@gmail.com>
pkgname='prop-git'
pkgver=r12.2ea1f12
pkgrel=1
pkgdesc="Lighweight, nice and distro-agnostic CLI app for viewing properties of files!"
arch=('x86_64')
url="https://github.com/fidelicura/prop"
license=('AGPL-3.0')
depends=('glibc')
makedepends=('git' 'rust')
source=('git+https://github.com/fidelicura/prop.git')
md5sums=('SKIP')

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

build() {
	cd prop
	cargo build --release
}

package() {
	cd prop
	install -Dm755 ./target/release/prop "$pkgdir/usr/bin/prop"
	install -Dm644 ./README.md "$pkgdir/usr/share/doc/prop"
}