void-packages/srcpkgs/mold/template

23 lines
785 B
Bash

# Template file for 'mold'
pkgname=mold
version=2.4.0
revision=1
build_style=cmake
configure_args="-DMOLD_USE_SYSTEM_MIMALLOC=ON
-Dmimalloc_DIR=${XBPS_CROSS_BASE}/cmake/mimalloc-2.0"
makedepends="mimalloc-devel openssl-devel zlib-devel libzstd-devel"
# It's probably not worth pulling in clang/llvm to run the few tests that
# depend on them.
checkdepends="tar zstd libdwarf gdb"
short_desc="Faster drop-in replacement for existing Unix linkers"
maintainer="Peter Wang <novalazy@gmail.com>"
license="MIT"
homepage="https://github.com/rui314/mold"
distfiles="https://github.com/rui314/mold/archive/refs/tags/v${version}.tar.gz"
checksum=be65f3d785d32ece7b3204ecaa57810847fdd25c232cf704cbfff2dafb1ac107
post_install() {
vlicense LICENSE
rm -v ${DESTDIR}/usr/share/doc/mold/LICENSE
}