updated on Sun Jan 15 16:02:00 UTC 2012
[aur-mirror.git] / wixi-git / PKGBUILD
blob79aa4debd0fb3e9a1b246798074c19b3e1a425e0
1 #Maintainer: Crazycheese <lct@pisem.net>
2 #Development version of wixi. Use only if you wish to hack the code.
4 pkgname=wixi-git
5 pkgver=20090927
6 pkgrel=1
7 pkgdesc="A multi-platform wiki application for the desktop, written in wxpython. Git version."
8 url="http://wixi.sourceforge.net/"
9 license="GPL"
11 arch=('i686' 'x86_64')
12 provides=('wixi' 'wixi-git')
13 conflicts=('wixi')
14 depends=('wxpython')
15 makedepends=('git')
17 source=()
18 md5sums=()
20 install=${pkgname}.install
22 _gitroot="git://wixi.git.sourceforge.net/gitroot/wixi/wixi"
23 _gitname="wixi"
25 build() {
26 #retrieving data from git.
28         cd $startdir/src
29         msg "Connecting to server..."
31         if [ -d $startdir/src/$_gitname ] ; then
32                 cd $_gitname && git pull origin
33                 msg "The local files are updated."
34         else
35                 git clone $_gitroot
36         fi
39         msg "GIT checkout done or server timeout"
40         msg "Starting build..."
42         cp -r $startdir/src/$_gitname $startdir/src/$_gitname-build
43         cd $startdir/src/$_gitname-build
44         
45         python setup.py install --root=${pkgdir}
47         msg "Installing icon and menu entry."
48 # using ${_gitname}.desktop, instead of ${pkgver}.desktop, because we need wixi.desktop, not wixi-git.desktop
49         install -Dm644 ${startdir}/${_gitname}.desktop ${pkgdir}/usr/share/applications/${_gitname}.desktop