blob: 6d04f6fc11f23418d26972b2c82178f2ad79d41b (
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
|
# Maintainer: Tianhao Wang <i AT shrik3 DOT com>
#
pkgname=vodozemac-bindings-cpp-kazv
pkgver=0.2.0
pkgrel=1
pkgdesc="kazv's C++ bindings for the vodozemac cryptographic library."
arch=('x86_64')
url="https://lily-is.land/kazv/vodozemac-bindings"
license=('Apache-2.0')
depends=('gcc-libs')
makedepends=('cargo' 'perl')
source=("https://lily-is.land/kazv/vodozemac-bindings/-/archive/v${pkgver}/vodozemac-bindings-v${pkgver}.tar.gz")
sha512sums=('SKIP')
provides=('libvodozemac.so')
_pkgname=vodozemac-bindings-v$pkgver
prepare() {
cd "$srcdir"/$_pkgname
# generate lib.rs, so that we can run cargo fetch in the prepare()
make -C cpp src/lib.rs
cargo fetch --target "$(rustc -vV | sed -n 's/host: //p')"
}
build() {
cd "$srcdir"/$_pkgname
make -C cpp
}
package() {
cd "$srcdir"/$_pkgname
make -C cpp PREFIX="$pkgdir/usr" install
}
|