42 lines
1.3 KiB
Bash
42 lines
1.3 KiB
Bash
# Template file for 'ldc'
|
|
pkgname=ldc
|
|
version=1.28.0
|
|
revision=2
|
|
reverts="1.29.0_1"
|
|
wrksrc="ldc-${version}-src"
|
|
build_style=cmake
|
|
configure_args="
|
|
-DINCLUDE_INSTALL_DIR=/usr/include/dlang/ldc
|
|
-DBUILD_SHARED_LIBS=ON
|
|
-DCMAKE_BUILD_TYPE=RelWithDebInfo
|
|
-DBASH_COMPLETION_COMPLETIONSDIR=/usr/share/bash-completion
|
|
-DC_SYSTEM_LIBS='unwind;m;pthread;rt;dl'"
|
|
conf_files="/etc/ldc2.conf"
|
|
hostmakedepends="dmd llvm12 perl pkg-config"
|
|
makedepends="libcurl-devel libffi-devel ncurses-devel zlib-devel
|
|
llvm-libunwind-devel"
|
|
depends="ldc-runtime llvm-libunwind-devel"
|
|
checkdepends="python3"
|
|
short_desc="Portable D programming language compiler based on LLVM"
|
|
maintainer="Auri <me@aurieh.me>"
|
|
license="BSD-3-Clause, BSL-1.0"
|
|
homepage="https://wiki.dlang.org/LDC"
|
|
changelog="https://raw.githubusercontent.com/ldc-developers/ldc/master/CHANGELOG.md"
|
|
distfiles="https://github.com/ldc-developers/ldc/releases/download/v${version}/ldc-${version}-src.tar.gz"
|
|
checksum=17fee8bb535bcb8cda0a45947526555c46c045f302a7349cc8711b254e54cf09
|
|
nopie=yes
|
|
nocross="dmd compilation fails on cross"
|
|
# tests timeout on musl; also require unpackaged python3-lit
|
|
make_check=no
|
|
|
|
post_install() {
|
|
vlicense LICENSE
|
|
}
|
|
|
|
ldc-runtime_package() {
|
|
short_desc+=" - D runtime"
|
|
pkg_install() {
|
|
vmove "usr/lib/*.so*"
|
|
}
|
|
}
|