summaryrefslogtreecommitdiffstats
path: root/i3-git/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'i3-git/PKGBUILD')
-rw-r--r--i3-git/PKGBUILD70
1 files changed, 70 insertions, 0 deletions
diff --git a/i3-git/PKGBUILD b/i3-git/PKGBUILD
new file mode 100644
index 0000000..3724f7d
--- /dev/null
+++ b/i3-git/PKGBUILD
@@ -0,0 +1,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:
+