34 lines
1.0 KiB
Bash
34 lines
1.0 KiB
Bash
# Template file for 'ldc'
|
|
pkgname=ldc
|
|
version=1.20.1
|
|
revision=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"
|
|
conf_files="/etc/ldc2.conf"
|
|
hostmakedepends="dmd llvm9 perl pkg-config"
|
|
makedepends="libcurl-devel libffi-devel ncurses-devel zlib-devel"
|
|
depends="ldc-runtime"
|
|
short_desc="Portable D programming language compiler based on LLVM"
|
|
maintainer="Orphaned <orphan@voidlinux.org>"
|
|
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=2b21dfffb6efd2c2158bc83422765335aae34b709ebdc406bb026c21967a1aaf
|
|
nopie=yes
|
|
nocross=yes
|
|
|
|
post_install() {
|
|
vlicense LICENSE
|
|
}
|
|
|
|
ldc-runtime_package() {
|
|
short_desc+=" - D runtime"
|
|
pkg_install() {
|
|
vmove "usr/lib/*.so*"
|
|
}
|
|
}
|