summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 2296135aa7e1a1ac8595cc89b7eb82e1ea0f4428 (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
36
37
38
39
40
41
# Maintainer: Dan Printzell <me@vild.io>

pkgname=('workspace-d')
pkgver=2.8.0
pkgrel=1
pkgdesc="Wraps dcd, dfmt and dscanner to one unified environment managed by dub"
arch=('i686' 'x86_64')
url="https://github.com/Pure-D/workspace-d"
license=("MIT")
groups=('dlang')
makedepends=('dmd' 'git' 'dub')
depends=('libphobos' 'dub' 'dcd' 'dfmt' 'dscanner')
provides=('workspace-d')
conflicts=('workspace-d')

source=(
	"git+https://github.com/Pure-D/workspace-d#tag=v${pkgver}"
)
sha256sums=(
	'SKIP'
)

prepare() {
	cd $srcdir/workspace-d
	git submodule update --init --recursive
	dub upgrade
}

build() {
	cd $srcdir/workspace-d
	dub build
	strip workspace-d
}

package(){
	cd $srcdir/workspace-d

	# binaries
	mkdir -p $pkgdir/usr/bin
	install -m755 -t $pkgdir/usr/bin ./workspace-d
}