# Template file for 'ldc' # pkgname=ldc version=0.15.1 revision=1 wrksrc="ldc-${version}-src" build_style=cmake configure_args="-DINCLUDE_INSTALL_DIR=/usr/include/dlang/ldc -DBUILD_SHARED_LIBS=ON" hostmakedepends="cmake llvm perl pkg-config" makedepends="zlib-devel libconfig-devel libffi-devel libcurl-devel" conf_files="/etc/ldc2.rebuild.conf /etc/ldc2.conf" maintainer="Juan RP " homepage="http://wiki.dlang.org/LDC" license="BSD" 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=ff7ea55309d678c20524779091617aa1d4bdbaa39e1a650927020fe1627f4b0f post_install() { vmkdir usr/share/bash-completion/completions mv ${DESTDIR}/etc/bash_completion.d/* \ ${DESTDIR}/usr/share/bash-completion/completions } ldc-runtime_package() { short_desc+=" - D runtime" pkg_install() { vmove usr/lib/*.so* } }