void-packages/srcpkgs/ldc/template
2017-09-16 17:43:05 +02:00

26 lines
852 B
Bash

# Template file for 'ldc'
pkgname=ldc
version=1.4.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"
conf_files="/etc/ldc2.conf"
maintainer="Juan RP <xtraeme@voidlinux.eu>"
homepage="http://wiki.dlang.org/LDC"
license="3-clause-BSD, Boost Software License 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=dd29a5833ae02307c387e87d861d5de588b9b16ea3574ef96f8da1f81bbd7c5c
nopie=yes
nocross=yes
ldc-runtime_package() {
short_desc+=" - D runtime"
pkg_install() {
vmove usr/lib/*.so*
}
}