summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 77e852f3addb2b43d9f95baf30a0ca9ac802d8f6 (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
# Maintainer: robertfoster

pkgname=libindy-crypto
pkgver=0.5.1
pkgrel=1
pkgdesc="Shared crypto library for Hyperledger Indy components"
arch=(i686 x86_64)
url="https://github.com/hyperledger/indy-crypto"
license=('APACHE')
depends=('libsodium')
makedepends=('rust')
source=("indy-crypto-$pkgver.tar.gz::https://static.crates.io/crates/indy-crypto/indy-crypto-0.5.1.crate'")

build() {
	cd $srcdir/indy-crypto-$pkgver
	cargo build --release
}

package() {
	cd $srcdir/indy-crypto-$pkgver
	install -Dm755 target/release/libindy_crypto.so "$pkgdir/usr/lib/libindy_crypto.so"
	install -d 755 $pkgdir/usr/include/indy_crypto/
	cp include/*.h $pkgdir/usr/include/indy_crypto
}

md5sums=('226d7a818179e012c5bf602bed0e67e6')