blob: a2adb3be30e7f759b2d0e71e71cbfdfb31f188ca (
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 <me@vild.io>
pkgname=('dwin-git')
pkgver=r73.ca40bda
pkgrel=2
pkgdesc="A window manager written in D"
arch=('i686' 'x86_64')
url="https://github.com/vild/dwin"
license=("MIT")
groups=('dlang')
makedepends=('dmd' 'git' 'dub' 'libxcb')
depends=('libphobos' 'dub')
provides=('dwin')
conflicts=('dwin')
source=(
"git+https://github.com/Vild/DWin"
)
sha256sums=(
'SKIP'
)
pkgver() {
cd "$srcdir/DWin"
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
prepare() {
cd "$srcdir/DWin"
dub upgrade
}
build() {
cd "$srcdir/DWin"
dub build
}
package() {
# binaries
install -Dm755 "$srcdir/DWin/dwin" "$pkgdir/usr/bin/dwin"
# license
install -Dm644 "$srcdir/DWin/LICENSE" "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
# scripts
install -d "$pkgdir/usr/share/dwin/scripts"
find "$srcdir/DWin/scripts/" -type f -exec install -m 644 "{}" "$pkgdir/usr/share/dwin/scripts" \;
}
|