summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 8ab00fa8546c0188581d54733c7ec0ebcf897c5a (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
# Maintainer: <Charklie charliejohanid@gmail.com>
pkgname=rsftch-git
_pkgname=rsftch
pkgver=0.4.5
pkgrel=1
pkgdesc="Lightning fast hardware fetch tool written in rust."
url="https://github.com/charklie/rsftch"
depends=('cargo' 'pciutils' 'sqlite' 'gcc-libs' 'glibc')
makedepends=('git')
license=("MIT")
arch=("x86_64" "aarch64")
provides=("rsftch")
conflicts=("rsftch")
source=("git+https://github.com/charklie/rsftch.git")
sha256sums=("SKIP")

build() {
	cd "$_pkgname"
	git config http.postBuffer 524288000
	export RUSTUP_TOOLCHAIN=stable
	export CARGO_TARGET_DIR=target
	cargo build --offline --release
}

package() {
	cd "$_pkgname"
    install -Dm755 "target/release/$_pkgname" -t "$pkgdir/usr/bin"
    install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}