summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 881cac6393c2e24d7a59b41eec4b9bd595c62fbd (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
pkgname=parity-git
_pkgname=parity
pkgdesc="Fast, light, robust Ethereum implementation"
pkgrel=1
pkgver=1.11.0.11056
arch=('i686' 'x86_64')
conflicts=("parity")
provides=("parity")
url="https://github.com/paritytech/parity"
license=('GPL-3.0')
depends=('libsystemd' 'openssl')
makedepends=('cargo')
source=('git+https://github.com/paritytech/parity.git')
sha256sums=('SKIP')

pkgver() {
	cd $_pkgname

	echo $(grep '^version =' Cargo.toml|head -n1|cut -d\" -f2).$(git rev-list --count HEAD)
}

build() {
	cd $_pkgname
	env CARGO_INCREMENTAL=0 cargo build --release
}

package() {
	cd $_pkgname
	install -D -m755 "$srcdir/$_pkgname/target/release/parity" "$pkgdir/usr/bin/parity"
	install -D -m644 "$srcdir/$_pkgname/scripts/parity.service" "$pkgdir/usr/lib/systemd/system/parity.service"
	install -D -m644 "$srcdir/$_pkgname/LICENSE" "$pkgdir/usr/share/licenses/$_pkgname/LICENSE"
}