summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: d2379db7d7bce162b8dd2fc30364ae43f624767a (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
30
31
32
33
34
35
36
37
# Maintainer: LĂ©opold Koprivnik Ibghy <skwal.net@gmail.com>
pkgname="rmini-matrix-git"
pkgver=r5.3c2e760
pkgrel=1
pkgdesc="Rust implementation for mini-matrix - Display random 0 and 1 or custom chars in matric style"
arch=('any')
url="https://github.com/SkwalExe/rmini-matrix"
license=('MIT')
makedepends=("git" "cargo")
provides=("rmini-matrix")
install=rmini-matrix.install
source=("git+$url")
md5sums=("SKIP")

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

prepare() {
	cd rmini-matrix
    
}

build() {
	cd rmini-matrix 
	cargo build --release
}


package() {
	cd rmini-matrix
	mkdir -p ${pkgdir}/opt/${pkgname}
	cp -rf * ${pkgdir}/opt/${pkgname}
	install -Dm755 ./target/release/rmini-matrix "$pkgdir/usr/bin/rmini-matrix"
    install -Dm644 ./README.md "$pkgdir/usr/share/doc/$pkgname"
}