summaryrefslogtreecommitdiff
path: root/community/notion
diff options
context:
space:
mode:
authorroot <root@rshg054.dnsready.net>2011-08-18 23:14:33 +0000
committerroot <root@rshg054.dnsready.net>2011-08-18 23:14:33 +0000
commit59eecef62ae9aa7dd391310f30293318f641c59c (patch)
tree18b1685d21f421939a133b2db2663bc63e5d873c /community/notion
parent3413e75c9cdb6c0daf6ddf92f469a2221c94a55b (diff)
Thu Aug 18 23:14:33 UTC 2011
Diffstat (limited to 'community/notion')
-rw-r--r--community/notion/PKGBUILD77
1 files changed, 77 insertions, 0 deletions
diff --git a/community/notion/PKGBUILD b/community/notion/PKGBUILD
new file mode 100644
index 000000000..f7bb06784
--- /dev/null
+++ b/community/notion/PKGBUILD
@@ -0,0 +1,77 @@
+# $Id: PKGBUILD 54370 2011-08-17 15:48:41Z spupykin $
+# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
+# Maintainer: Eugen Zagorodniy e dot zagorodniy at gmail dot com
+# Contributor: aunoor
+
+pkgname=notion
+pkgver=20110817
+pkgrel=1
+pkgdesc="Tabbed tiling, window manager. Fork of Ion3"
+url="http://sourceforge.net/projects/notion/"
+arch=('i686' 'x86_64')
+license=('custom:LGPL')
+depends=('glib2' 'gettext' 'lua' 'libxext' 'libsm')
+makedepends=('git' 'pkgconfig')
+conflicts=('ion3')
+provides=('libtu' 'libextl')
+source=()
+
+_gitroot="git://notion.git.sourceforge.net/gitroot/notion/notion"
+_gitname="notion"
+_gitroot2="git://notion.git.sourceforge.net/gitroot/notion/libtu"
+_gitname2="libtu"
+_gitroot3="git://notion.git.sourceforge.net/gitroot/notion/libextl"
+_gitname3="libextl"
+
+build() {
+ cd ${srcdir}
+
+ msg "Connecting to the git repository..."
+ if [ -d ${srcdir}/${_gitname} ]; then
+ cd ${_gitname}
+ git pull origin
+ else
+ git clone --depth 1 ${_gitroot}
+ cd ${_gitname}
+ fi
+
+ if [ -d ${srcdir}/${_gitname}/${_gitname2} ]; then
+ echo
+ git pull origin
+ else
+ git clone --depth 1 ${_gitroot2}
+ echo
+ fi
+
+ if [ -d ${srcdir}/${_gitname}/${_gitname3} ]; then
+ echo
+ git pull origin
+ else
+ git clone --depth 1 ${_gitroot3}
+ echo
+ fi
+
+ msg "GIT checkout done or server timeout"
+
+ rm -rf ${srcdir}/${_gitname}-build
+ cp -r ${srcdir}/${_gitname} ${srcdir}/${_gitname}-build
+
+ cd ${srcdir}/${_gitname}-build
+
+ msg "Starting make..."
+
+ sed -e 's/^\(PREFIX=\).*$/\1\/usr/' \
+ -e 's/^\(ETCDIR=\).*$/\1\/etc\/notion/' \
+ -e 's/^\(LUA_DIR=\).*$/\1\/usr/' \
+ -e 's/^\(X11_PREFIX=\).*/\1\/usr/' \
+ -i system.mk
+
+ make INCLUDES=-I${srcdir}/${_gitname}-build
+}
+
+package() {
+ cd ${srcdir}/${_gitname}-build
+ make PREFIX=${pkgdir}/usr ETCDIR=${pkgdir}/etc/notion install
+ mkdir -p ${pkgdir}/usr/share/licenses/notion
+ cp LICENSE ${pkgdir}/usr/share/licenses/notion
+}