void-packages/srcpkgs/ldc/template

31 lines
959 B
Bash
Raw Normal View History

2013-06-18 11:07:24 +02:00
# Template file for 'ldc'
2014-11-11 18:20:31 +01:00
#
2013-06-18 11:07:24 +02:00
pkgname=ldc
2014-12-15 13:00:09 +01:00
version=0.15.1
revision=1
2014-06-09 07:42:45 +02:00
wrksrc="ldc-${version}-src"
2013-06-18 11:07:24 +02:00
build_style=cmake
2014-12-15 13:00:09 +01:00
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 <xtraeme@voidlinux.eu>"
2013-06-18 11:07:24 +02:00
homepage="http://wiki.dlang.org/LDC"
license="BSD"
short_desc="Portable D programming language compiler based on LLVM"
2014-06-09 07:42:45 +02:00
distfiles="https://github.com/ldc-developers/ldc/releases/download/v${version}/ldc-${version}-src.tar.gz"
2014-12-15 13:00:09 +01:00
checksum=ff7ea55309d678c20524779091617aa1d4bdbaa39e1a650927020fe1627f4b0f
2013-06-18 11:07:24 +02:00
post_install() {
vmkdir usr/share/bash-completion/completions
mv ${DESTDIR}/etc/bash_completion.d/* \
${DESTDIR}/usr/share/bash-completion/completions
}
2014-12-15 13:00:09 +01:00
ldc-runtime_package() {
short_desc+=" - D runtime"
pkg_install() {
vmove usr/lib/*.so*
}
}