aboutsummaryrefslogtreecommitdiffstats
path: root/testing/dcd/APKBUILD
blob: 0d8f9dd5b734508f932384655a45a73a627a99c8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
# Contributor: Rasmus Thomsen <oss@cogitri.dev>
# Maintainer: Rasmus Thomsen <oss@cogitri.dev>
pkgname=dcd
pkgver=0.12.0
_githash=33dbd7653ecf830b735382e11d9bee66853a6dcf
pkgrel=0
pkgdesc="The D Completion Daemon is an auto-complete program for the D programming language"
url="https://github.com/dlang-community/DCD"
arch="x86 x86_64 aarch64" # ldc
license="GPL-3.0-or-later"
makedepends="ldc ldc-runtime stdx-allocator-dev dsymbol-dev libdparse-dev
	msgpack-d-dev dcontainers-dev bash"
options="!check" # Can only be run with a DMD version of DCD
source="https://github.com/dlang-community/DCD/archive/v$pkgver/dcd-$pkgver.tar.gz
	do-shared-linking.patch"
builddir="$srcdir/DCD-$pkgver"

prepare() {
	default_prepare

	mkdir bin
	echo $_githash > bin/githash.txt
}

build() {
	make DFLAGS="-link-defaultlib-shared" ldc
}

package() {
	install -d "$pkgdir"/usr/bin
	install -m0755 bin/dcd-client bin/dcd-server "$pkgdir"/usr/bin/
}

sha512sums="caadc5d497d6a209fda23523164247c1b921cebbe641fb6b5cedcecd20075d9283407f132886a369b15286c327e6a9e6015f290c31283e2a49a0e676b4cf82a9  dcd-0.12.0.tar.gz
3d0a85c47eca379ee350ba007200469e2c95ae3822d3826c275e6b4be7fa7d7d8e1c730fe971c6d67589888d94ea0c108581164952072ee9e956cf001298e21f  do-shared-linking.patch"