summaryrefslogtreecommitdiff
path: root/community/clinica
diff options
context:
space:
mode:
authorroot <root@rshg054.dnsready.net>2013-07-19 01:10:32 -0700
committerroot <root@rshg054.dnsready.net>2013-07-19 01:10:32 -0700
commit8fbc0076a4827ddc6af92e0b9daa4c4c31450808 (patch)
tree03fd0e2921ebd53228d9a93e32ed3976b636cbea /community/clinica
parente445a313723389ba9ee1fded025c567dae5b21ea (diff)
Fri Jul 19 01:09:18 PDT 2013
Diffstat (limited to 'community/clinica')
-rw-r--r--community/clinica/PKGBUILD42
-rw-r--r--community/clinica/clinica.install11
2 files changed, 53 insertions, 0 deletions
diff --git a/community/clinica/PKGBUILD b/community/clinica/PKGBUILD
new file mode 100644
index 000000000..49be87069
--- /dev/null
+++ b/community/clinica/PKGBUILD
@@ -0,0 +1,42 @@
+# $Id: PKGBUILD 94204 2013-07-16 17:21:04Z giovanni $
+# Maintainer: Giovanni Scafora <giovanni@archlinux.org>
+# Contributor: Gianmarco Brocchi <gianmarcobrocchi@gmail.com>
+
+pkgname=clinica
+pkgver=0.3.0
+pkgrel=1
+pkgdesc="Simple medical records manager"
+arch=('i686' 'x86_64')
+url="https://launchpad.net/clinica-project"
+license=('GPL3')
+depends=('libgee06' 'libpeas' 'jansson' 'libsoup' 'librsvg' 'yelp')
+makedepends=('cmake' 'vala' 'intltool')
+optdepends=('python2-gobject: for Agenzia del Farmaco plugin')
+install=clinica.install
+options=('!makeflags')
+source=("https://launchpad.net/clinica-project/stable/${pkgver}/+download/${pkgname}-${pkgver}.tar.bz2")
+md5sums=('dae10a4e10c7d148f05ae56d1b0ae47d')
+
+build() {
+ cd "${srcdir}/${pkgname}-${pkgver}"
+ sed -i -e "s:-Werror=format-security:-Wformat -Werror=format-security:g" CMakeLists.txt
+ sed -i 's@^#!.*python$@#!/usr/bin/python2@' plugins/AgenziaDelFarmaco.py
+ sed -i -e "s:Application;GTK;:Office;GTK;:g" data/clinica.desktop
+
+ mkdir build
+ cd build
+ cmake \
+ -DCMAKE_INSTALL_PREFIX=/usr \
+ -DGSETTINGS_COMPILE=OFF \
+ -DGSETTINGS_COMPILE_IN_PLACE=OFF \
+ -DCMAKE_BUILD_TYPE=Release \
+ -DCMAKE_SKIP_RPATH=ON ..
+
+ LC_ALL=C LANG=C make
+}
+
+package() {
+ cd "${srcdir}/${pkgname}-${pkgver}/build"
+
+ make DESTDIR="${pkgdir}" install
+}
diff --git a/community/clinica/clinica.install b/community/clinica/clinica.install
new file mode 100644
index 000000000..326aa98a2
--- /dev/null
+++ b/community/clinica/clinica.install
@@ -0,0 +1,11 @@
+post_install() {
+ glib-compile-schemas usr/share/glib-2.0/schemas
+}
+
+post_upgrade() {
+ post_install
+}
+
+post_remove() {
+ post_install
+}