blob: 3724f7dcde4ae71297e6af5be59286ee2ebd4e38 (
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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
|
# Maintainer: Thorsten Toepper <atsutane at freethoughts dot de>
pkgname=i3-git
pkgver=20100819
pkgrel=1
pkgdesc="An improved dynamic tiling window manager"
arch=('i686' 'x86_64')
url="http://i3.zekjur.net/"
license=('BSD')
provides=('i3-wm')
conflicts=('i3-wm')
depends=('xcb-util' 'libx11' 'libev' 'yajl')
makedepends=('git' 'asciidoc' 'docbook-xsl' 'pkgconfig'
'bison' 'flex')
optdepends=('rxvt-unicode: The terminal emulator used in the default config.'
'dmenu: As menu.'
'i3lock: For locking your screen.'
'i3status: To display systeminformation with a bar.')
options=('docs' '!strip')
_gitroot="git://code.stapelberg.de/i3"
_gitname="i3"
build() {
cd "$srcdir"
msg "Connecting to GIT server...."
if [ -d $_gitname ] ; then
cd $_gitname && git pull origin
msg "The local files are updated."
else
git clone $_gitroot
cd $_gitname
git branch -f next origin/next
git checkout next
fi
msg "GIT checkout done or server timeout"
msg "Starting make..."
rm -rf "$srcdir/$_gitname-build"
cp -r "$srcdir/$_gitname" "$srcdir/$_gitname-build"
cd "$srcdir/$_gitname-build"
make || return 1
make -C man || return 1
}
package() {
cd "$srcdir/$_gitname-build"
make DESTDIR="$pkgdir/" install || return 1
install -Dm644 man/i3.1 \
${pkgdir}/usr/share/man/man1/i3.1 || return 1
install -Dm644 man/i3-msg.1 \
${pkgdir}/usr/share/man/man1/i3-msg.1 || return 1
install -Dm644 man/i3-input.1 \
${pkgdir}/usr/share/man/man1/i3-input.1 || return 1
install -Dm644 LICENSE \
${pkgdir}/usr/share/licenses/${pkgname}/LICENSE || return 1
rm ${pkgdir}/usr/bin/i3-wsbar || return 1
make clean
}
# vim:set ts=2 sw=2 et:
|