Commit bb86dcaa authored by TBK's avatar TBK Committed by Leo

testing/rizin: new aport

parent c681e480
Pipeline #69222 failed with stages
in 38 seconds
# Contributor: TBK <alpine@jjtc.eu>
# Maintainer: TBK <alpine@jjtc.eu>
pkgname=rizin
pkgver=0.1.0
pkgrel=0
pkgdesc="UNIX-like reverse engineering framework and command-line toolset"
url="https://rizin.re/"
# 32bit - 15/75 big FAIL 0.59s (exit status 1)
# s390x:
# 49/75 pdb FAIL 0.97s (exit status 1)
# 55/75 serialize_analysis FAIL 0.03s (exit status 1)
arch="all !x86 !armv7 !armhf !s390x"
license="GPL-3.0-or-later AND LGPL-3.0-or-later"
makedepends="
cmake
meson
py3-yaml
capstone-dev
file-dev
libuv-dev
linux-headers
libzip-dev
lz4-dev
openssl-dev
tree-sitter-dev
xxhash-dev
zlib-dev
"
subpackages="$pkgname-dev $pkgname-doc $pkgname-libs"
_testbins_commit=f0bbaa9c90acac376f09c5293386022fadc634d9
source="$pkgname-$pkgver.tar.xz::https://github.com/rizinorg/rizin/releases/download/v$pkgver/rizin-src-v$pkgver.tar.xz
testbins.tar.gz::https://github.com/rizinorg/rizin-testbins/archive/$_testbins_commit.tar.gz
"
prepare() {
default_prepare
# bins used for testing
mv "$srcdir/rizin-testbins-$_testbins_commit" "$builddir/test/bins"
}
build() {
abuild-meson \
-Duse_sys_capstone=true \
-Duse_sys_magic=true \
-Duse_sys_zip=true \
-Duse_sys_zlib=true \
-Duse_sys_lz4=true \
-Duse_sys_xxhash=true \
-Duse_sys_openssl=true \
-Duse_sys_tree_sitter=true \
-Duse_libuv=true \
. output
meson compile ${JOBS:+-j ${JOBS}} -C output
}
check() {
# Include the build rizin otherwise
# unit/test_rzpipe.c will fail
export PATH="$PATH:$builddir/output/binrz/rizin/"
meson test --no-rebuild -v -C output
}
package() {
DESTDIR="$pkgdir" meson install --no-rebuild -C output
}
sha512sums="3c6949df261f6fad66ebc801b3ffa2f42879e1ac4b3a043ad887f9dc4a411605c4271dc46330a1a0d8610416de3419a0cf99c70337d5e2d2071ff761b7c0a2b9 rizin-0.1.0.tar.xz
33ecc1e8386e5e10ffce1eb7d0fd609f3965db5285e5a64a4ef3d6f91f080a9d2d5e658f7eb7643c8488ec6cce8215f37924384c4f3d283aa0921ada9478401e testbins.tar.gz"
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment