blob: 508eaae9f5011407cdad70faad2a24cb29874f12 (
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
38
39
40
41
42
43
44
45
|
# Maintainer: Citorva <packaging@citorva.fr>
pkgname=extism
pkgver=1.7.0
pkgrel=0
pkgdesc="Runtime library for the extism framework"
arch=('x86_64')
url="https://github.com/extism/extism"
license=('BSD-3-Clause')
depends=('glibc' 'gcc-libs')
makedepends=('cargo' 'gcc' 'make')
# provides nothing
source=("${pkgname}-${pkgver}.tar.gz::${url}/archive/refs/tags/v${pkgver}.tar.gz")
sha256sums=('1fdc60a08a413e66046f6ab6c58a6a93a7c981ef05ee37128892d2ce4d927364')
prepare() {
cd ${srcdir}/${pkgname}-${pkgver}/
export RUSTUP_TOOLCHAIN=stable
# cargo fetch --locked --target "$(rustc -vV | sed -n 's/host: //p')" # Currently, the lock file is out to date
cargo fetch --target "$(rustc -vV | sed -n 's/host: //p')"
}
build() {
cd ${srcdir}/${pkgname}-${pkgver}/
export RUSTUP_TOOLCHAIN=stable
export CARGO_TARGET_DIR=target
CFLAGS+=' -ffat-lto-objects' make
}
check() {
cd ${srcdir}/${pkgname}-${pkgver}/
export RUSTUP_TOOLCHAIN=stable
CFLAGS+=' -ffat-lto-objects' make bench
}
package() {
cd ${srcdir}/${pkgname}-${pkgver}/
mkdir ${pkgdir}/usr
make DEST="${pkgdir}/usr" install
}
|