void-packages/srcpkgs/ldc/template
2016-11-08 12:08:09 +01:00

32 lines
989 B
Bash

# Template file for 'ldc'
pkgname=ldc
version=1.0.0
revision=2
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="libconfig-devel 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"
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=3740ee6d5871e953aeb03b11f9d8c951286a55884892b51981bfe579b8fe571d
nopie=yes
nocross=yes
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*
}
}