updated on Fri Jan 20 16:18:17 UTC 2012
[aur-mirror.git] / pyfa-git / PKGBUILD
blob7b88ad3bca204d59d83796a4c16cd18dde117592
1 # This is an example PKGBUILD file. Use this as a start to creating your own,
2 # and remove these comments. For more information, see 'man PKGBUILD'.
3 # NOTE: Please fill out the license field for your package! If it is unknown,
4 # then please put 'unknown'.
6 # See http://wiki.archlinux.org/index.php/VCS_PKGBUILD_Guidelines
7 # for more information on packaging from GIT sources.
9 # Contributor: Maarten de Boer <ventieldopje@gmail.com>
10 pkgname=pyfa-git
11 pkgver=20100412
12 pkgrel=1
13 pkgdesc="EVE Online Fitting Assistant"
14 arch=('i686' 'x86_64')
15 url="http://pyfa.sourceforge.net/"
16 license=('GPL')
17 depends=('pygtk' 'python>=2.5')
18 conflicts=('pyfa')
19 source=(pyfa.desktop pyfa-icon.png pyfa-start.sh)
20 md5sums=('8da4a99bca7a86976e44c70c668c05af'
21                 '828fc4c47b6dc19518c239d984ae33a3'
22                 '20b168b1fd0a04e680dc9d35d246f088')
24 _gitroot="git://pyfa.git.sourceforge.net/gitroot/pyfa/gui_gtk"
25 _gitname="pyfa"
27 _gitmodelroot="git://pyfa.git.sourceforge.net/gitroot/pyfa/model"
28 _gitmodelname="model"
30 build() {
31         cd "$srcdir"
32         msg "Connecting to GIT server...."
34         if [ -d $_gitname ] ; then
35                 cd $_gitname && git pull origin
36                 msg "The local files are updated"
37         else
38                 git clone $_gitroot $_gitname
39         fi
41         cd $_gitname || return 1
43         if [ -d $_gitmodelname ] ; then
44                 cd $_gitmodelname && git pull origin
45                 msg "The local files are updated"
46         else
47                 git clone $_gitmodelroot $_gitmodelname
48         fi
50         cd "$srcdir"
52         msg "GIT checkout done or server timeout"
54         install -d "${pkgdir}"/usr/bin || return 1
55         install -d "${pkgdir}"/usr/share/{applications,pixmaps,pyfa} || return 1
57         cp -vR "${srcdir}"/pyfa/* $pkgdir/usr/share/pyfa || return 1
59         install "${srcdir}"/pyfa.desktop "${pkgdir}"/usr/share/applications/pyfa.desktop || return 1 
60         install "${srcdir}"/pyfa-icon.png "${pkgdir}"/usr/share/pixmaps/pyfa.png || return 1
61         install -m755 "${srcdir}"/pyfa-start.sh "${pkgdir}"/usr/bin/pyfa || return