void-packages/srcpkgs/ldc/template
2018-03-11 00:35:55 +01:00

30 lines
871 B
Bash

# Template file for 'ldc'
pkgname=ldc
version=1.8.0
revision=3
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"
conf_files="/etc/ldc2.conf"
maintainer="Juan RP <xtraeme@voidlinux.eu>"
homepage="http://wiki.dlang.org/LDC"
license="BSD-3-Clause, BSL-1.0"
short_desc="Portable D programming language compiler based on LLVM"
distfiles="https://github.com/ldc-developers/ldc/releases/download/v${version}/ldc-${version}-src.tar.gz"
checksum=e421a1f4bbf97d173bd277125794862ca5b6a09409586b806cec23b922955c7f
nopie=yes
nocross=yes
post_install() {
vlicense LICENSE
}
ldc-runtime_package() {
short_desc+=" - D runtime"
pkg_install() {
vmove usr/lib/*.so*
}
}