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>
13 pkgdesc="EVE Online Fitting Assistant"
14 arch=('i686' 'x86_64')
15 url="http://pyfa.sourceforge.net/"
17 depends=('pygtk' 'python>=2.5')
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"
27 _gitmodelroot="git://pyfa.git.sourceforge.net/gitroot/pyfa/model"
32 msg "Connecting to GIT server...."
34 if [ -d $_gitname ] ; then
35 cd $_gitname && git pull origin
36 msg "The local files are updated"
38 git clone $_gitroot $_gitname
41 cd $_gitname || return 1
43 if [ -d $_gitmodelname ] ; then
44 cd $_gitmodelname && git pull origin
45 msg "The local files are updated"
47 git clone $_gitmodelroot $_gitmodelname
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