aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDuncan Bellamy <dunk@denkimushi.com>2022-05-22 19:40:16 +0000
committeralice <alice@ayaya.dev>2022-05-22 22:26:16 +0000
commit9c906afe5d0c6b27997654738ed9015e67371df7 (patch)
tree128a907951a75b9a15ff55b0d983679e7e6ceb65
parent5bf692fa3c5226a17b112ca57df0e00d5ed1d0d9 (diff)
downloadaports-9c906afe5d0c6b27997654738ed9015e67371df7.tar.gz
aports-9c906afe5d0c6b27997654738ed9015e67371df7.tar.bz2
aports-9c906afe5d0c6b27997654738ed9015e67371df7.tar.xz
community/rspamd: enable on riscv64
* add icu-data-full to depends
-rw-r--r--community/rspamd/APKBUILD18
1 files changed, 12 insertions, 6 deletions
diff --git a/community/rspamd/APKBUILD b/community/rspamd/APKBUILD
index 5c27476b2a..da555faf8e 100644
--- a/community/rspamd/APKBUILD
+++ b/community/rspamd/APKBUILD
@@ -6,15 +6,15 @@
# Maintainer: Duncan Bellamy <dunk@denkimushi.com>
pkgname=rspamd
pkgver=3.2
-pkgrel=1
+pkgrel=2
pkgdesc="Fast, free and open-source spam filtering system"
url="https://rspamd.com/"
-# riscv64 blocked by luajit
-arch="all !riscv64"
+arch="all"
license="Apache-2.0 BSD-1-Clause BSD-2-Clause BSD-3-Clause CC0-1.0 LGPL-2.1-or-later
LGPL-3.0-only MIT Zlib"
pkgusers="rspamd"
pkggroups="rspamd"
+depends="icu-data-full"
makedepends="
cmake
curl-dev
@@ -22,7 +22,6 @@ makedepends="
glib-dev
icu-dev
libsodium-dev
- luajit-dev
openssl1.1-compat-dev
pcre2-dev
perl
@@ -32,6 +31,12 @@ makedepends="
zlib-dev
zstd-dev
"
+case "$CARCH" in
+ riscv64) makedepends="$makedepends lua5.4-dev"
+ _luajit="OFF" ;;
+ *) makedepends="$makedepends luajit-dev"
+ _luajit="ON" ;;
+esac
install="$pkgname.pre-install $pkgname.post-upgrade"
subpackages="
$pkgname-dbg
@@ -77,7 +82,7 @@ build() {
-DENABLE_URL_INCLUDE=ON \
-DENABLE_PCRE2=ON \
-DENABLE_HYPERSCAN="$_hm" \
- -DENABLE_LUAJIT=ON \
+ -DENABLE_LUAJIT="$_luajit" \
-DSYSTEM_FMT=ON \
-DSYSTEM_ZSTD=ON \
-DCMAKE_CXX_FLAGS="$CXXFLAGS" \
@@ -89,11 +94,12 @@ build() {
check() {
case "$CARCH" in
- x86|x86_64|s390x|armv7)
+ x86|x86_64|s390x|armv7|riscv64)
# x86 has Segmentation fault on builder
# x86_64 has illegal instruction on builder
# s390x has require nil value error
# armv7 has bus error
+ # riscv64 full tests need luajit
./build/test/rspamd-test-cxx ;;
*)
cmake --build build --target run-test ;;