updated on Thu Jan 12 16:09:17 UTC 2012
[aur-mirror.git] / notion-xft / PKGBUILD
blobe7fa715bfccef32e9f36907494e0223c8b2f523a
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
4 # Contributor: aunoor
5 # Contributor: realturner < realturner at gmail dot com > 
7 pkgname=notion-xft
8 pkgver=20110827
9 pkgrel=1
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"
21 _gitname="notion"
22 _gitroot2="git://notion.git.sourceforge.net/gitroot/notion/libtu"
23 _gitname2="libtu"
24 _gitroot3="git://notion.git.sourceforge.net/gitroot/notion/libextl"
25 _gitname3="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')
33 build() {
34     cd ${srcdir}
36     msg "Connecting to the git repository..."
37     if [ -d ${srcdir}/${_gitname} ]; then
38         cd ${_gitname}
39         git pull origin
40     else
41         git clone --depth 1 ${_gitroot}
42         cd ${_gitname}
43     fi
45     if [ -d ${srcdir}/${_gitname}/${_gitname2} ]; then
46     echo
47         git pull origin
48     else
49         git clone --depth 1 ${_gitroot2}
50       echo
51     fi
53     if [ -d ${srcdir}/${_gitname}/${_gitname3} ]; then
54     echo
55         git pull origin
56     else
57         git clone --depth 1 ${_gitroot3}
58     echo
59     fi
61     if [ -d ${srcdir}/${_gitname}/${_gitname4} ]; then
62     echo
63         git pull origin
64     else
65         git clone --depth 1 ${_gitroot4}
66     echo
67     fi
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/' \
84         -i system.mk
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)
91 package() {
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