summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 3201ba9258d337ea67bee78bb5dd7f5c24823791 (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: Rein Fernhout (LevitatingBusinessMan) <public@reinfernhout.xyz>

pkgname=filematch
pkgver=fe26f8a
arch=("x86_64")
pkgrel=1
pkgdesc="A CLI program to compare checksums of folders and files"
license=("MIT")
makedepends=("cargo" "git")
url="https://github.com/LevitatingBusinessMan/filematch"
source=("git+https://github.com/LevitatingBusinessMan/filematch.git")
sha256sums=("SKIP")

pkgver() {
	cd "${srcdir}/${pkgname}"
	git rev-parse --short HEAD
}

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

package() {
    install -Dm755 $srcdir/$pkgname/target/release/filematch $pkgdir/usr/bin/filematch
    install -Dm644 $srcdir/$pkgname/LICENSE $pkgdir/usr/share/licenses/filematch/LICENSE
}