1 # $Id: PKGBUILD 54702 2011-08-23 11:42:16Z spupykin $
2 # Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
3 # Maintainer: Eugen Zagorodniy e dot zagorodniy at gmail dot com
5 # Contributor: realturner < realturner at gmail dot com >
10 pkgdesc="Tabbed tiling, window manager. Fork of Ion3, with XFT patch"
11 url="http://sourceforge.net/projects/notion/"
12 arch=('i686' 'x86_64')
13 license=('custom:LGPL')
14 depends=('glib2' 'gettext' 'lua' 'libxext' 'libsm' 'libxft')
15 makedepends=('git' 'pkgconfig'
16 'rubber' 'latex2html' 'texlive-htmlxml' 'texlive-latexextra')
17 conflicts=('ion3' 'notion')
18 provides=('libtu' 'libextl' 'notion')
20 _gitroot="git://notion.git.sourceforge.net/gitroot/notion/notion"
22 _gitroot2="git://notion.git.sourceforge.net/gitroot/notion/libtu"
24 _gitroot3="git://notion.git.sourceforge.net/gitroot/notion/libextl"
26 _gitroot4="git://notion.git.sourceforge.net/gitroot/notion/notion-doc"
27 _gitname4="notion-doc"
29 source=(doc-build-fix.patch notion-xft.patch)
30 md5sums=('68b348427d0531d2679a8a8d97d51c7d'
31 '81e8ed3cfd272cb86a668d5571565750')
36 msg "Connecting to the git repository..."
37 if [ -d ${srcdir}/${_gitname} ]; then
41 git clone --depth 1 ${_gitroot}
45 if [ -d ${srcdir}/${_gitname}/${_gitname2} ]; then
49 git clone --depth 1 ${_gitroot2}
53 if [ -d ${srcdir}/${_gitname}/${_gitname3} ]; then
57 git clone --depth 1 ${_gitroot3}
61 if [ -d ${srcdir}/${_gitname}/${_gitname4} ]; then
65 git clone --depth 1 ${_gitroot4}
69 msg "GIT checkout done or server timeout"
71 rm -rf ${srcdir}/${_gitname}-build
72 cp -r ${srcdir}/${_gitname} ${srcdir}/${_gitname}-build
74 cd ${srcdir}/${_gitname}-build
76 msg "Starting make..."
77 patch -p1 -i $srcdir/notion-xft.patch
79 sed -e 's/^\(PREFIX=\).*$/\1\/usr/' \
80 -e 's/^\(ETCDIR=\).*$/\1\/etc\/notion/' \
81 -e 's/^\(LUA_DIR=\).*$/\1\/usr/' \
82 -e 's/^\(X11_PREFIX=\).*/\1\/usr/' \
83 -e 's/^#\(USE_XFT=\)/\1/' \
86 make INCLUDES=-I${srcdir}/${_gitname}-build
87 (cd notion-doc && patch -p1 <$srcdir/doc-build-fix.patch)
88 (cd notion-doc && make -j1 TOPDIR=.. all)
92 cd ${srcdir}/${_gitname}-build
93 make PREFIX=${pkgdir}/usr ETCDIR=${pkgdir}/etc/notion install
94 (cd notion-doc && make PREFIX=${pkgdir}/usr TOPDIR=.. install)
95 mkdir -p ${pkgdir}/usr/share/licenses/notion
96 cp LICENSE ${pkgdir}/usr/share/licenses/notion