updated on Mon Jan 16 00:01:41 UTC 2012
[aur-mirror.git] / gnumed-client / PKGBUILD
blob49261b1dd6c46f35665df7b174ea257cba831f02
1 pkgname=gnumed-client
2 pkgver=0.9.5
3 pkgrel=1
4 pkgdesc="assist and improve longitudinal medical care"
5 arch=(i686 x86_64)
6 url="http://wiki.gnumed.de/bin/view/Gnumed"
7 license=('GPL')
8 # list of dependecies found in check-prerequisites.sh, some of them probably optional
9 # missing: 'python-support'
10 depends=('bash' 'tar' 'coreutils' 'mc' 'python' 'python-psycopg2' 'wxpython' 'openssl' 'wget' 'gzip' 'file')
11 optdepends=('python-pyenchant' 'python-egenix-mx-base' 'gnuplot-py' 'kdepim-console' 'aspell' 'xsane' 'texlive-latex' 'gtklp' )
12 makedepends=()
13 source=(http://www.gnumed.de/downloads/client/0.9/gnumed-client.$pkgver.tgz)
14 md5sums=('693cbd9f594d95ccfa2d981e64bc6c82')
16 build() {
17   cd "$srcdir/$pkgname.$pkgver/"
19   mkdir -p $pkgdir/usr/share/doc/gnumed
20   mkdir -p $pkgdir/etc/gnumed
22   cp client/connectors/gm_ctl_client.conf $pkgdir/etc/gnumed/gm_ctl_client.conf
23   cp client/doc/gnumed.conf.example $pkgdir/etc/gnumed/gnumed.conf
24   cp client/etc/gnumed/gnumed-client.conf.example $pkgdir/etc/gnumed/gnumed-client.conf
25 #  cp %{SOURCE2} $pkgdir/etc/gnumed/
27   mkdir -p $pkgdir/usr/bin
28   cp client/gnumed $pkgdir/usr/bin/gnumed
30   mkdir -p $pkgdir/usr/share/gnumed/bitmaps
31   cp client/bitmaps/empty-face-in-bust.png $pkgdir/usr/share/gnumed/bitmaps/empty-face-in-bust.png
32   cp client/bitmaps/gnumedlogo.png $pkgdir/usr/share/gnumed/bitmaps/gnumedlogo.png
33   cp client/bitmaps/serpent.png $pkgdir/usr/share/gnumed/bitmaps/serpent.png
35   mkdir -p $pkgdir/usr/share/po/fr/LC_MESSAGES/
36   mkdir -p $pkgdir/usr/share/po/de/LC_MESSAGES/
37   mkdir -p $pkgdir/usr/share/po/es/LC_MESSAGES/
38   mkdir -p $pkgdir/usr/share/po/it/LC_MESSAGES/
39   mkdir -p $pkgdir/usr/share/po/nb/LC_MESSAGES/
40   mkdir -p $pkgdir/usr/share/po/nl/LC_MESSAGES/
41   mkdir -p $pkgdir/usr/share/po/pl/LC_MESSAGES/
42   mkdir -p $pkgdir/usr/share/po/pt_BR/LC_MESSAGES/
43   mkdir -p $pkgdir/usr/share/po/ru/LC_MESSAGES/
44   cp client/po/fr-gnumed.mo $pkgdir/usr/share/po/fr/LC_MESSAGES/gnumed.mo
45   cp client/po/de-gnumed.mo $pkgdir/usr/share/po/de/LC_MESSAGES/gnumed.mo
46   cp client/po/es-gnumed.mo $pkgdir/usr/share/po/es/LC_MESSAGES/gnumed.mo
47   cp client/po/it-gnumed.mo $pkgdir/usr/share/po/it/LC_MESSAGES/gnumed.mo
48   cp client/po/nb-gnumed.mo $pkgdir/usr/share/po/nb/LC_MESSAGES/gnumed.mo
49   cp client/po/nl-gnumed.mo $pkgdir/usr/share/po/nl/LC_MESSAGES/gnumed.mo
50   cp client/po/pl-gnumed.mo $pkgdir/usr/share/po/pl/LC_MESSAGES/gnumed.mo
51   cp client/po/pt_BR-gnumed.mo $pkgdir/usr/share/po/pt_BR/LC_MESSAGES/gnumed.mo
52   cp client/po/ru-gnumed.mo $pkgdir/usr/share/po/ru/LC_MESSAGES/gnumed.mo
54   mkdir -p $pkgdir/usr/share/pixmaps
55   cp client/bitmaps/gnumed.xpm $pkgdir/usr/share/pixmaps/gnumed.xpm
57   mkdir -p -m 755  $pkgdir/usr/lib/python2.6/site-packages/Gnumed/business
58   cp -r client/business $pkgdir/usr/lib/python2.6/site-packages/Gnumed
60   mkdir -p -m755 $pkgdir/usr/lib/python2.6/site-packages/Gnumed/exporters
61   cp -r client/exporters $pkgdir/usr/lib/python2.6/site-packages/Gnumed
63   mkdir -p -m 755 $pkgdir/usr/lib/python2.6/site-packages/Gnumed/wxGladeWidgets
64   cp -r client/wxGladeWidgets  $pkgdir/usr/lib/python2.6/site-packages/Gnumed
66   mkdir -p -m 755 $pkgdir/usr/lib/python2.6/site-packages/Gnumed/wxpython/gui
67   cp -r client/wxpython $pkgdir/usr/lib/python2.6/site-packages/Gnumed
68   cp -r client/wxpython/gui $pkgdir/usr/lib/python2.6/site-packages/Gnumed/wxpython
70   cp -r client/gnumed.py $pkgdir/usr/lib/python2.6/site-packages/Gnumed
72   # TODO: this sed fix should not be here!
73   sed -i -e 's@Exec=/usr/bin/gnumed@Exec=/usr/bin/gnumed --conf-file=/etc/gnumed/gnumed-client.conf@' client/gnumed-client.desktop
74   mkdir -p $pkgdir/usr/share/applications/
75   mkdir -p $pkgdir/usr/share/icons/
76   cp client/gnumed-client.desktop $pkgdir/usr/share/applications/
77   cp client/bitmaps/gnumedlogo.png $pkgdir/usr/share/icons/gnumed.png
79   desktop-file-install \
80     --vendor='' \
81     --dir $pkgdir/usr/share/applications \
82     $pkgdir/usr/share/applications/gnumed-client.desktop
84   # Files for common package
85   mkdir -p $pkgdir/usr/lib/python2.6/site-packages/Gnumed/pycommon
86   cp -r client/pycommon $pkgdir/usr/lib/python2.6/site-packages/Gnumed
87   cp -r client/__init__.py $pkgdir/usr/lib/python2.6/site-packages/Gnumed
89   # Files for the doc package
90   mkdir -p $pkgdir/usr/share/doc/gnumed/user-manual
91   cp -r client/doc/user-manual/* $pkgdir/usr/share/doc/gnumed/user-manual