summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 532e22b1eca02e337c37ad047cba1d02bd27c283 (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
# Maintainer: Jon Osterman <pro.dev.account@protonmail.com>
pkgname=iroh-git
pkgver=0.5.1
pkgrel=1
pkgdesc='An Implementation IPFS in Rust'
arch=(x86_64)
url='https://github.com/n0-computer/iroh'
license=(MIT Apache)
depends=(gcc-libs)
makedepends=(git cargo)
checkdepends=()
source=($pkgname::git+https://github.com/n0-computer/iroh.git#tag=v$pkgver)
sha256sums=('SKIP')

build() {
	cd $pkgname
	cargo build --release
}
 
check() {
	cd $pkgname
	cargo test --no-fail-fast || return 0;
}

package() {
	cd $pkgname
	install -Dm 755 target/release/iroh -t "$pkgdir/usr/bin"
	install -Dm 644 LICENSE-MIT -t "$pkgdir/usr/share/licenses/$pkgname"
	install -Dm 644 LICENSE-APACHE -t "$pkgdir/usr/share/licenses/$pkgname"
}