40 lines
1.1 KiB
Bash
40 lines
1.1 KiB
Bash
# Template file for 'dtools'
|
|
pkgname=dtools
|
|
reverts="2.100.0_1"
|
|
# keep this synchronized with libphobos and dmd
|
|
version=2.098.0
|
|
revision=2
|
|
wrksrc="tools-${version}"
|
|
hostmakedepends="dmd"
|
|
makedepends="libcurl-devel"
|
|
depends="libphobos>=${version}"
|
|
short_desc="Ancillary tools for the D programming language"
|
|
maintainer="Auri <me@aurieh.me>"
|
|
license="BSL-1.0"
|
|
homepage="http://www.digitalmars.com/d/2.0/"
|
|
distfiles="https://github.com/dlang/tools/archive/v${version}.tar.gz"
|
|
checksum=9466e62ed2cf80802158524fc4e7ff80cbefc0fadff23a8933f6f2892b42cb56
|
|
|
|
do_build() {
|
|
# rdmd can't be built normally, is used to build others
|
|
dmd -od. -ofdtools-rdmd rdmd.d
|
|
|
|
for tool in DustMite/dustmite catdoc checkwhitespace contributors ddemangle detab tolf changed dget rdmd_test; do
|
|
./dtools-rdmd --compiler=dmd --build-only -od. -ofdtools-"$(basename "${tool}")" "${tool}.d"
|
|
done
|
|
}
|
|
|
|
do_install() {
|
|
vbin dtools-rdmd rdmd
|
|
vbin dtools-dustmite dustmite
|
|
vbin dtools-ddemangle ddemangle
|
|
vbin dtools-dget dget
|
|
for tool in catdoc checkwhitespace contributors detab tolf changed rdmd_test; do
|
|
vbin "dtools-${tool}"
|
|
done
|
|
|
|
vman man/man1/rdmd.1
|
|
|
|
vlicense LICENSE.txt
|
|
}
|