blob: 81913e767353d57eead931dd67a39d6e1f2be26a (
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
|
pkgname=parity-git
_pkgname=parity
pkgdesc="Fast, light, robust Ethereum implementation"
pkgrel=1
pkgver=0.9.99.2281
arch=('i686' 'x86_64')
conflicts=("parity")
provides=("parity")
url="https://github.com/ethcore/parity"
license=('AGPL-3.0')
depends=('rocksdb')
makedepends=('rust' 'cargo' 'git' 'python-pytoml')
source=('git://github.com/ethcore/parity.git')
sha256sums=(
'SKIP'
)
pkgver() {
cd $_pkgname
echo "$(python -c "print(__import__('pytoml').loads(open('Cargo.toml').read())['package']['version'])").$(git rev-list --count HEAD)"
}
build() {
cd $_pkgname
cargo update
cargo build --release
}
check() {
cd $_pkgname
cargo test --release
}
package() {
cd $_pkgname
cargo install --root "$pkgdir/usr"
}
|