void-packages/srcpkgs/ldc/template
2018-06-24 03:56:56 -03:00

35 lines
1.1 KiB
Bash

# Template file for 'ldc'
pkgname=ldc
version=1.10.0
revision=1
wrksrc="ldc-${version}-src"
build_style=cmake
configure_args="-DINCLUDE_INSTALL_DIR=/usr/include/dlang/ldc -DBUILD_SHARED_LIBS=ON"
hostmakedepends="dmd llvm 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="Juan RP <xtraeme@voidlinux.eu>"
license="BSD-3-Clause, BSL-1.0"
homepage="http://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=99b6e2b8dcaf28a2947318fb25e43fa0b96dd3a6377995146f987c4d17dd8371
conf_files="/etc/ldc2.conf"
nopie=yes
nocross=yes
case "${XBPS_TARGET_MACHINE}" in
*-musl) broken="https://build.voidlinux.eu/builders/x86_64-musl_builder/builds/9741/steps/shell_3/logs/stdio" ;;
esac
post_install() {
vlicense LICENSE
}
ldc-runtime_package() {
short_desc+=" - D runtime"
pkg_install() {
vmove "usr/lib/*.so*"
}
}