summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 22e97e8c32266b8dc0328ff6479096eb98945f19 (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
42
43
44
45
46
47
48
# Maintainer: Dan Printzell <xwildn00bx@gmail.com>

pkgname=("dinu-git")
pkgver=r46.c54ad0f
pkgrel=1
pkgdesc="Launcher, file manager, one-way terminal"
arch=("i686" "x86_64")
url="https://github.com/weltensturm/dinu"
license=("MIT")
groups=("dlang")
makedepends=("dmd" "git" "dub")
depends=("libphobos")
provides=("dinu")
conflicts=("dinu")
options=("!strip")

source=(
	"git+https://github.com/weltensturm/dinu"
)
sha256sums=(
	"SKIP"
)

pkgver() {
	cd $srcdir/dinu
	printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

prepare() {
	cd $srcdir/dinu
	dub upgrade
}

build() {
	cd $srcdir/dinu
	dub build

	strip ./bin/dinu
}

package() {
	cd $srcdir/dinu

	# binaries
	mkdir -p $pkgdir/usr/bin
	install -m755 -t $pkgdir/usr/bin ./bin/dinu
	install -m755 -t $pkgdir/usr/bin ./complete.sh
}